##// END OF EJS Templates
add Ctrl+Backspace and Ctrl+Del keybindings to delete to start and end of current word
Martin Spacek -
Show More
@@ -1045,6 +1045,12 b' class ConsoleWidget(Configurable, QtGui.QWidget):'
1045 intercepted = True
1045 intercepted = True
1046
1046
1047 elif key in (QtCore.Qt.Key_Backspace, QtCore.Qt.Key_Delete):
1047 elif key in (QtCore.Qt.Key_Backspace, QtCore.Qt.Key_Delete):
1048 if key == QtCore.Qt.Key_Backspace:
1049 cursor = self._get_word_start_cursor(position)
1050 else: # key == QtCore.Qt.Key_Delete
1051 cursor = self._get_word_end_cursor(position)
1052 cursor.setPosition(position, QtGui.QTextCursor.KeepAnchor)
1053 self._kill_ring.kill_cursor(cursor)
1048 intercepted = True
1054 intercepted = True
1049
1055
1050 elif key in (QtCore.Qt.Key_Plus, QtCore.Qt.Key_Equal):
1056 elif key in (QtCore.Qt.Key_Plus, QtCore.Qt.Key_Equal):
General Comments 0
You need to be logged in to leave comments. Login now