summaryrefslogtreecommitdiff
path: root/Lib/idlelib/calltip_w.py
diff options
context:
space:
mode:
authorterryjreedy <tjreedy@udel.edu>2017-06-27 01:53:40 -0400
committerGitHub <noreply@github.com>2017-06-27 01:53:40 -0400
commit8bdc3bd3d66fefdc07d32bd19c41c6f902f16111 (patch)
tree6a331311db06da59a5f9f71d6d0722eb8b8f4084 /Lib/idlelib/calltip_w.py
parent2d348f7a723db839aa18ce8213b8663ccb0a3d35 (diff)
downloadcpython-git-8bdc3bd3d66fefdc07d32bd19c41c6f902f16111.tar.gz
[3.6] bpo-29910: IDLE no longer deletes a character after commenting out a region (GH-825) (#2429)
This happened because shortcut has a class binding and 'break' was not returned. Fix other potential conflicts between IDLE and default key bindings. * Add news item * Update NEWS (cherry picked from commit 213ce12)
Diffstat (limited to 'Lib/idlelib/calltip_w.py')
-rw-r--r--Lib/idlelib/calltip_w.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/idlelib/calltip_w.py b/Lib/idlelib/calltip_w.py
index c7361d18d6..bf967f40b6 100644
--- a/Lib/idlelib/calltip_w.py
+++ b/Lib/idlelib/calltip_w.py
@@ -89,24 +89,27 @@ class CallTip:
# If the event was triggered by the same event that unbinded
# this function, the function will be called nevertheless,
# so do nothing in this case.
- return
+ return None
curline, curcol = map(int, self.widget.index("insert").split('.'))
if curline < self.parenline or \
(curline == self.parenline and curcol <= self.parencol) or \
self.widget.compare("insert", ">", MARK_RIGHT):
self.hidetip()
+ return "break"
else:
self.position_window()
if self.checkhide_after_id is not None:
self.widget.after_cancel(self.checkhide_after_id)
self.checkhide_after_id = \
self.widget.after(CHECKHIDE_TIME, self.checkhide_event)
+ return None
def hide_event(self, event):
if not self.tipwindow:
# See the explanation in checkhide_event.
- return
+ return None
self.hidetip()
+ return "break"
def hidetip(self):
if not self.tipwindow: