Show More
@@ -1062,6 +1062,7 b' class ConsoleWidget(LoggingConfigurable, QtGui.QWidget):' | |||
|
1062 | 1062 | |
|
1063 | 1063 | elif key == QtCore.Qt.Key_K: |
|
1064 | 1064 | if self._in_buffer(position): |
|
1065 | cursor.clearSelection() | |
|
1065 | 1066 | cursor.movePosition(QtGui.QTextCursor.EndOfLine, |
|
1066 | 1067 | QtGui.QTextCursor.KeepAnchor) |
|
1067 | 1068 | if not cursor.hasSelection(): |
@@ -1072,6 +1073,7 b' class ConsoleWidget(LoggingConfigurable, QtGui.QWidget):' | |||
|
1072 | 1073 | QtGui.QTextCursor.KeepAnchor, |
|
1073 | 1074 | len(self._continuation_prompt)) |
|
1074 | 1075 | self._kill_ring.kill_cursor(cursor) |
|
1076 | self._set_cursor(cursor) | |
|
1075 | 1077 | intercepted = True |
|
1076 | 1078 | |
|
1077 | 1079 | elif key == QtCore.Qt.Key_L: |
@@ -1085,6 +1087,7 b' class ConsoleWidget(LoggingConfigurable, QtGui.QWidget):' | |||
|
1085 | 1087 | |
|
1086 | 1088 | elif key == QtCore.Qt.Key_U: |
|
1087 | 1089 | if self._in_buffer(position): |
|
1090 | cursor.clearSelection() | |
|
1088 | 1091 | start_line = cursor.blockNumber() |
|
1089 | 1092 | if start_line == self._get_prompt_cursor().blockNumber(): |
|
1090 | 1093 | offset = len(self._prompt) |
@@ -1095,6 +1098,7 b' class ConsoleWidget(LoggingConfigurable, QtGui.QWidget):' | |||
|
1095 | 1098 | cursor.movePosition(QtGui.QTextCursor.Right, |
|
1096 | 1099 | QtGui.QTextCursor.KeepAnchor, offset) |
|
1097 | 1100 | self._kill_ring.kill_cursor(cursor) |
|
1101 | self._set_cursor(cursor) | |
|
1098 | 1102 | intercepted = True |
|
1099 | 1103 | |
|
1100 | 1104 | elif key == QtCore.Qt.Key_Y: |
General Comments 0
You need to be logged in to leave comments.
Login now