summaryrefslogtreecommitdiff
path: root/Lib/idlelib/EditorWindow.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2011-03-22 19:26:46 -0400
committerKurt B. Kaiser <kbk@shore.net>2011-03-22 19:26:46 -0400
commit01ac8cdc132806f57815822854ba1589b4fc40c3 (patch)
treeece8973111af3e02c69ea813bffcb337c8002e94 /Lib/idlelib/EditorWindow.py
parent8e5e942c594aa29351cdc8ce5802159700cd2dc6 (diff)
parent75fc566d0f1c0eb3f1065be61220402d05506ec8 (diff)
downloadcpython-git-01ac8cdc132806f57815822854ba1589b4fc40c3.tar.gz
Merge from 3.1
Diffstat (limited to 'Lib/idlelib/EditorWindow.py')
-rw-r--r--Lib/idlelib/EditorWindow.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index a37cb1d9bc..aeec9bfa95 100644
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -303,9 +303,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 \