]> granicus.if.org Git - python/commitdiff
<Home> toggle non-functional when NumLock set
authorKurt B. Kaiser <kbk@shore.net>
Mon, 21 Mar 2011 06:13:42 +0000 (02:13 -0400)
committerKurt B. Kaiser <kbk@shore.net>
Mon, 21 Mar 2011 06:13:42 +0000 (02:13 -0400)
on Windows.  Issue3851.

Lib/idlelib/EditorWindow.py
Lib/idlelib/NEWS.txt

index 173fad9eb379b1ea979282cceffa54a88cd05ae8..095bdf31a6b2ca6d8baa85d60876a098660a33c2 100644 (file)
@@ -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 \
index 24629c1eded24a9f5791a4efef0111c04b1d9792..7081d8020a99ae2b18484874b7df91ecbc13d3d3 100644 (file)
@@ -1,3 +1,11 @@
+What's New in IDLE 3.1.4?
+=========================
+
+*Release date: XX-XXX-XX*
+
+- <Home> toggle non-functional when NumLock set on Windows.  Issue3851.
+
+
 What's New in IDLE 3.1b1?
 =========================