diff Lib/idlelib/EditorWindow.py @ 68908:a7d50a4e124e 3.1

<Home> toggle non-functional when NumLock set on Windows. Issue3851.
author Kurt B. Kaiser <kbk@shore.net>
date Mon, 21 Mar 2011 02:13:42 -0400
parents 0991b40e895d
children c4d355363114 2e88ff463c72
line wrap: on
line diff
--- a/Lib/idlelib/EditorWindow.py	Tue Mar 22 09:11:39 2011 -0700
+++ b/Lib/idlelib/EditorWindow.py	Mon Mar 21 02:13:42 2011 -0400
@@ -304,9 +304,9 @@
         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 \