Mercurial > cpython-lru_cache-weakref
diff Lib/idlelib/PyShell.py @ 46582:ebc40e500869 legacy-trunk
Home / Control-A toggles between left margin and end of leading white
space. Patch 1196903 Jeff Shute.
M idlelib/PyShell.py
M idlelib/EditorWindow.py
M idlelib/NEWS.txt
| author | Kurt B. Kaiser <kbk@shore.net> |
|---|---|
| date | Sun, 27 Apr 2008 21:07:41 +0000 |
| parents | 01a7e66525c2 |
| children | 88bb9df385dc |
line wrap: on
line diff
--- a/Lib/idlelib/PyShell.py Sun Apr 27 20:53:57 2008 +0000 +++ b/Lib/idlelib/PyShell.py Sun Apr 27 21:07:41 2008 +0000 @@ -826,7 +826,6 @@ text.bind("<<newline-and-indent>>", self.enter_callback) text.bind("<<plain-newline-and-indent>>", self.linefeed_callback) text.bind("<<interrupt-execution>>", self.cancel_callback) - text.bind("<<beginning-of-line>>", self.home_callback) text.bind("<<end-of-file>>", self.eof_callback) text.bind("<<open-stack-viewer>>", self.open_stack_viewer) text.bind("<<toggle-debugger>>", self.toggle_debugger) @@ -1063,16 +1062,6 @@ self.top.quit() return "break" - def home_callback(self, event): - if event.state != 0 and event.keysym == "Home": - return # <Modifier-Home>; fall back to class binding - if self.text.compare("iomark", "<=", "insert") and \ - self.text.compare("insert linestart", "<=", "iomark"): - self.text.mark_set("insert", "iomark") - self.text.tag_remove("sel", "1.0", "end") - self.text.see("insert") - return "break" - def linefeed_callback(self, event): # Insert a linefeed without entering anything (still autoindented) if self.reading:
