summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/EditorWindow.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2011-03-24 17:19:35 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2011-03-24 17:19:35 (GMT)
commit5cf7878fda141c005c04dde883efd4050cafc9e1 (patch)
tree85bcbcf3bb6e7c9bb1eaf67107621fc04765274d /Lib/idlelib/EditorWindow.py
parentb938c8c25316b69f1d5df2c7880a9f6b87e7c2fa (diff)
parentf9439914c8359ec42889028f537bbe1dd57c4590 (diff)
downloadcpython-5cf7878fda141c005c04dde883efd4050cafc9e1.zip
cpython-5cf7878fda141c005c04dde883efd4050cafc9e1.tar.gz
cpython-5cf7878fda141c005c04dde883efd4050cafc9e1.tar.bz2
Merge 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 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 \