You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A bug when bind <F3> shortcut key in the Tkinter program. #146030
On the Windows 10, if you input an "r" using the Chinese PinYin input method. then press the Enter key to display the English "r" on the text box, it will trigger the F3 input event.
also on IDLE (It is also a built-in program developed based on tkinter).
When using the idle program, if you input "r" and make it appear on the screen, it will cause the "Find and Replace" dialog box to be displayed. Equals to Press the F3 key.
this is minimal example code of this bug.
test on:
Windows 10 + Python 3.10.11
Windows 10 + Python 3.14.3
also on IDLE (It is also a built-in program developed based on tkinter).
When using the idle program, if you input "r" and make it appear on the screen, it will cause the "Find and Replace" dialog box to be displayed. Equals to Press the F3 key.
Activity
thefatwhale commentedon Mar 16, 2026
I have no idea, why only char
rcauses this bug. It results in an F3 keyboard key event being inputted.thefatwhale commentedon Mar 16, 2026
also on IDLE (It is also a built-in program developed based on tkinter).
When using the idle program, if you input "r" and make it appear on the screen, it will cause the "Find and Replace" dialog box to be displayed. Equals to Press the F3 key.
StanFromIreland commentedon Mar 16, 2026
I cannot reproduce this on Linux in IDLE.
Locked-chess-official commentedon Mar 17, 2026
It might be the bug for tk on windows.
ThingamabobsCoding commentedon Mar 26, 2026
This bug is sadly very old. I think it was resolved with full unicode-support in tcl / tk 9. You can look here
#125349 (comment)
thefatwhale commentedon Mar 27, 2026
Yes, this is indeed an old issue, and I remember it existed even when using python3.8
The issue you referenced is indeed the same one I'm facing. Thanks!
#125349
thefatwhale commentedon Mar 27, 2026
Should I close this issue?
Because it was duplicated with that issue
ThingamabobsCoding commentedon Mar 27, 2026
Maybe @StanFromIreland can answer that question. I don't know
Wulian233 commentedon Mar 27, 2026
#125349 (comment)
This issue has persisted. I made some additions a year ago and there are also solutions available
thefatwhale commentedon Mar 27, 2026
@Wulian233
Thanks!