##// END OF EJS Templates
Fixed bug where closing a call tip by pressing Escape also cleared the input buffer.
epatters -
Show More
@@ -40,10 +40,15 b' class CallTipWidget(QtGui.QLabel):'
40 """
40 """
41 if obj == self.parent():
41 if obj == self.parent():
42 etype = event.type()
42 etype = event.type()
43 if (etype == QtCore.QEvent.KeyPress and
43
44 event.key() in (QtCore.Qt.Key_Enter, QtCore.Qt.Key_Return,
44 if etype == QtCore.QEvent.KeyPress:
45 QtCore.Qt.Key_Escape)):
45 key = event.key()
46 self.hide()
46 if key in (QtCore.Qt.Key_Enter, QtCore.Qt.Key_Return):
47 self.hide()
48 elif key == QtCore.Qt.Key_Escape:
49 self.hide()
50 return True
51
47 elif etype == QtCore.QEvent.FocusOut:
52 elif etype == QtCore.QEvent.FocusOut:
48 self.hide()
53 self.hide()
49
54
General Comments 0
You need to be logged in to leave comments. Login now