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