Show More
@@ -407,13 +407,14 b' The keybindings themselves are:' | |||||
407 | - ``C-l``: clear terminal. |
|
407 | - ``C-l``: clear terminal. | |
408 | - ``C-a``: go to beginning of line. |
|
408 | - ``C-a``: go to beginning of line. | |
409 | - ``C-e``: go to end of line. |
|
409 | - ``C-e``: go to end of line. | |
|
410 | - ``C-u``: kill from cursor to the begining of the line. | |||
410 | - ``C-k``: kill from cursor to the end of the line. |
|
411 | - ``C-k``: kill from cursor to the end of the line. | |
411 | - ``C-y``: yank (paste) |
|
412 | - ``C-y``: yank (paste) | |
412 | - ``C-p``: previous line (like up arrow) |
|
413 | - ``C-p``: previous line (like up arrow) | |
413 | - ``C-n``: next line (like down arrow) |
|
414 | - ``C-n``: next line (like down arrow) | |
414 | - ``C-f``: forward (like right arrow) |
|
415 | - ``C-f``: forward (like right arrow) | |
415 | - ``C-b``: back (like left arrow) |
|
416 | - ``C-b``: back (like left arrow) | |
416 |
- ``C-d``: delete next character |
|
417 | - ``C-d``: delete next character, or exits if input is empty | |
417 | - ``M-<``: move to the beginning of the input region. |
|
418 | - ``M-<``: move to the beginning of the input region. | |
418 | - ``M->``: move to the end of the input region. |
|
419 | - ``M->``: move to the end of the input region. | |
419 | - ``M-d``: delete next word. |
|
420 | - ``M-d``: delete next word. |
@@ -144,8 +144,7 b' class ConsoleWidget(LoggingConfigurable, QtGui.QWidget):' | |||||
144 | QtCore.Qt.Key_A : QtCore.Qt.Key_Home, |
|
144 | QtCore.Qt.Key_A : QtCore.Qt.Key_Home, | |
145 | QtCore.Qt.Key_P : QtCore.Qt.Key_Up, |
|
145 | QtCore.Qt.Key_P : QtCore.Qt.Key_Up, | |
146 | QtCore.Qt.Key_N : QtCore.Qt.Key_Down, |
|
146 | QtCore.Qt.Key_N : QtCore.Qt.Key_Down, | |
147 | QtCore.Qt.Key_H : QtCore.Qt.Key_Backspace, |
|
147 | QtCore.Qt.Key_H : QtCore.Qt.Key_Backspace, } | |
148 | QtCore.Qt.Key_D : QtCore.Qt.Key_Delete, } |
|
|||
149 | if not sys.platform == 'darwin': |
|
148 | if not sys.platform == 'darwin': | |
150 | # On OS X, Ctrl-E already does the right thing, whereas End moves the |
|
149 | # On OS X, Ctrl-E already does the right thing, whereas End moves the | |
151 | # cursor to the bottom of the buffer. |
|
150 | # cursor to the bottom of the buffer. | |
@@ -1115,6 +1114,9 b' class ConsoleWidget(LoggingConfigurable, QtGui.QWidget):' | |||||
1115 | cursor.setPosition(position, QtGui.QTextCursor.KeepAnchor) |
|
1114 | cursor.setPosition(position, QtGui.QTextCursor.KeepAnchor) | |
1116 | self._kill_ring.kill_cursor(cursor) |
|
1115 | self._kill_ring.kill_cursor(cursor) | |
1117 | intercepted = True |
|
1116 | intercepted = True | |
|
1117 | elif key == QtCore.Qt.Key_D: | |||
|
1118 | if len(self.input_buffer) == 0: | |||
|
1119 | self.exit_requested.emit(self) | |||
1118 |
|
1120 | |||
1119 | #------ Alt modifier --------------------------------------------------- |
|
1121 | #------ Alt modifier --------------------------------------------------- | |
1120 |
|
1122 |
@@ -188,6 +188,8 b' class MainWindow(QtGui.QMainWindow):' | |||||
188 | justthis.setShortcut('N') |
|
188 | justthis.setShortcut('N') | |
189 | closeall = QtGui.QPushButton("&Yes, close all", self) |
|
189 | closeall = QtGui.QPushButton("&Yes, close all", self) | |
190 | closeall.setShortcut('Y') |
|
190 | closeall.setShortcut('Y') | |
|
191 | # allow ctrl-d ctrl-d exit, like in terminal | |||
|
192 | closeall.setShortcut('Ctrl+D') | |||
191 | box = QtGui.QMessageBox(QtGui.QMessageBox.Question, |
|
193 | box = QtGui.QMessageBox(QtGui.QMessageBox.Question, | |
192 | title, msg) |
|
194 | title, msg) | |
193 | box.setInformativeText(info) |
|
195 | box.setInformativeText(info) |
General Comments 0
You need to be logged in to leave comments.
Login now