mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
<Home> toggle non-functional when NumLock set
on Windows. Issue3851.
This commit is contained in:
parent
e5820c6b5d
commit
75fc566d0f
2 changed files with 11 additions and 3 deletions
|
@ -304,9 +304,9 @@ class EditorWindow(object):
|
|||
return "break"
|
||||
|
||||
def home_callback(self, event):
|
||||
if (event.state & 12) != 0 and event.keysym == "Home":
|
||||
# state&1==shift, state&4==control, state&8==alt
|
||||
return # <Modifier-Home>; fall back to class binding
|
||||
if (event.state & 4) != 0 and event.keysym == "Home":
|
||||
# state&4==Control. If <Control-Home>, use the Tk binding.
|
||||
return
|
||||
|
||||
if self.text.index("iomark") and \
|
||||
self.text.compare("iomark", "<=", "insert lineend") and \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue