changeset: 68639:664a129c01f7 branch: 2.7 user: Kurt B. Kaiser date: Thu Mar 17 00:05:38 2011 -0400 files: Lib/idlelib/EditorWindow.py Lib/idlelib/NEWS.txt description: toggle non-functional when NumLock set. Issue3851 diff -r 421c941c529f -r 664a129c01f7 Lib/idlelib/EditorWindow.py --- a/Lib/idlelib/EditorWindow.py Wed Mar 16 22:28:08 2011 -0400 +++ b/Lib/idlelib/EditorWindow.py Thu Mar 17 00:05:38 2011 -0400 @@ -307,9 +307,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 # ; 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 -r 421c941c529f -r 664a129c01f7 Lib/idlelib/NEWS.txt --- a/Lib/idlelib/NEWS.txt Wed Mar 16 22:28:08 2011 -0400 +++ b/Lib/idlelib/NEWS.txt Thu Mar 17 00:05:38 2011 -0400 @@ -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? =======================