##// END OF EJS Templates
Added comment explaining why the behavior of Ctrl-L cannot be improved, after trying and failing to do so.
epatters -
Show More
@@ -643,6 +643,13 b' class ConsoleWidget(Configurable, QtGui.QWidget):'
643 intercepted = True
643 intercepted = True
644
644
645 elif key == QtCore.Qt.Key_L:
645 elif key == QtCore.Qt.Key_L:
646 # It would be better to simply move the prompt block to the top
647 # of the control viewport. QPlainTextEdit has a private method
648 # to do this (setTopBlock), but it cannot be duplicated here
649 # because it requires access to the QTextControl that underlies
650 # both QPlainTextEdit and QTextEdit. In short, this can only be
651 # achieved by appending newlines after the prompt, which is a
652 # gigantic hack and likely to cause other problems.
646 self.clear()
653 self.clear()
647 intercepted = True
654 intercepted = True
648
655
General Comments 0
You need to be logged in to leave comments. Login now