##// END OF EJS Templates
* Added support for Ctrl-L per Fernando's request....
epatters -
Show More
@@ -629,7 +629,13 b' class ConsoleWidget(QtGui.QWidget):'
629 629 cursor.removeSelectedText()
630 630 intercepted = True
631 631
632 elif key == QtCore.Qt.Key_L:
633 self.clear()
634 intercepted = True
635
632 636 elif key == QtCore.Qt.Key_X:
637 # FIXME: Instead of disabling cut completely, only allow it
638 # when safe.
633 639 intercepted = True
634 640
635 641 elif key == QtCore.Qt.Key_Y:
@@ -1285,8 +1291,11 b' class HistoryConsoleWidget(ConsoleWidget):'
1285 1291 source, hidden, interactive)
1286 1292
1287 1293 if executed and not hidden:
1288 self._history.append(history.rstrip())
1289 self._history_index = len(self._history)
1294 # Save the command unless it was a blank line.
1295 history = history.rstrip()
1296 if history:
1297 self._history.append(history)
1298 self._history_index = len(self._history)
1290 1299
1291 1300 return executed
1292 1301
@@ -39,9 +39,9 b' def main():'
39 39 'use a pure Python kernel instead of an IPython kernel')
40 40 egroup.add_argument('--pylab', type=str, metavar='GUI', nargs='?',
41 41 const='auto', help = \
42 "Pre-load matplotlib and numpy for interactive use. If GUI is not \
43 given, the GUI backend is matplotlib's, otherwise use one of: \
44 ['tk', 'gtk', 'qt', 'wx', 'payload-svg'].")
42 "Pre-load matplotlib and numpy for interactive use. If GUI is not \
43 given, the GUI backend is matplotlib's, otherwise use one of: \
44 ['tk', 'gtk', 'qt', 'wx', 'payload-svg'].")
45 45
46 46 wgroup = parser.add_argument_group('widget options')
47 47 wgroup.add_argument('--paging', type=str, default='inside',
General Comments 0
You need to be logged in to leave comments. Login now