From 75fc566d0f1c0eb3f1065be61220402d05506ec8 Mon Sep 17 00:00:00 2001 From: "Kurt B. Kaiser" Date: Mon, 21 Mar 2011 02:13:42 -0400 Subject: [PATCH] toggle non-functional when NumLock set on Windows. Issue3851. --- Lib/idlelib/EditorWindow.py | 6 +++--- Lib/idlelib/NEWS.txt | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 173fad9eb37..095bdf31a6b 100644 --- a/Lib/idlelib/EditorWindow.py +++ b/Lib/idlelib/EditorWindow.py @@ -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 # ; 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 24629c1eded..7081d8020a9 100644 --- a/Lib/idlelib/NEWS.txt +++ b/Lib/idlelib/NEWS.txt @@ -1,3 +1,11 @@ +What's New in IDLE 3.1.4? +========================= + +*Release date: XX-XXX-XX* + +- toggle non-functional when NumLock set on Windows. Issue3851. + + What's New in IDLE 3.1b1? =========================