diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2011-03-21 06:13:42 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2011-03-21 06:13:42 (GMT) |
commit | 75fc566d0f1c0eb3f1065be61220402d05506ec8 (patch) | |
tree | f44595e46292341271373e841974f3cd6e4303aa /Lib/idlelib | |
parent | e5820c6b5dcaa284835f86c95f4455082b842b63 (diff) | |
download | cpython-75fc566d0f1c0eb3f1065be61220402d05506ec8.zip cpython-75fc566d0f1c0eb3f1065be61220402d05506ec8.tar.gz cpython-75fc566d0f1c0eb3f1065be61220402d05506ec8.tar.bz2 |
<Home> toggle non-functional when NumLock set
on Windows. Issue3851.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/EditorWindow.py | 6 | ||||
-rw-r--r-- | 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 173fad9..095bdf3 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 # <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 \ diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt index 24629c1..7081d80 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* + +- <Home> toggle non-functional when NumLock set on Windows. Issue3851. + + What's New in IDLE 3.1b1? ========================= |