From: Kurt B. Kaiser Date: Thu, 17 Mar 2011 04:05:38 +0000 (-0400) Subject: toggle non-functional when NumLock set. X-Git-Tag: v2.7.2rc1~241^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=020d3d985698aac55383eb1a309fd6d281f58a97;p=python toggle non-functional when NumLock set. Issue3851 --- 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 # ; fall back to class binding + if (event.state & 4) != 0 and event.keysym == "Home": + # state&4==Control. If , use the Tk binding. + return if self.text.index("iomark") and \ self.text.compare("iomark", "<=", "insert lineend") and \ diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt index d32db1ebd9..47ff097fa3 100644 --- a/Lib/idlelib/NEWS.txt +++ b/Lib/idlelib/NEWS.txt @@ -1,3 +1,10 @@ +What's New in IDLE 2.7.2? +======================= + +*Release date: XX-XX-XXXX* + +- toggle non-functional when NumLock set on Windows. Issue3851. + What's New in IDLE 2.7? =======================