summaryrefslogtreecommitdiff
path: root/Lib/idlelib/EditorWindow.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2011-03-17 00:05:38 -0400
committerKurt B. Kaiser <kbk@shore.net>2011-03-17 00:05:38 -0400
commit020d3d985698aac55383eb1a309fd6d281f58a97 (patch)
treea141f2454c962732bc48d9716df698fc979b952d /Lib/idlelib/EditorWindow.py
parent764d75f325f2bb880fac579e136af2e65121a331 (diff)
downloadcpython-git-020d3d985698aac55383eb1a309fd6d281f58a97.tar.gz
<Home> toggle non-functional when NumLock set.
Issue3851
Diffstat (limited to 'Lib/idlelib/EditorWindow.py')
-rw-r--r--Lib/idlelib/EditorWindow.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index 999952aa2d..71b768f95a 100644
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -307,9 +307,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 \