[pyqgis-console] re-added shortcut mistakenly removed in 07abb34

This commit is contained in:
Salvatore Larosa 2013-05-02 12:45:34 +02:00
parent 25f78d22a0
commit ae7115f74f

View File

@ -121,6 +121,9 @@ class ShellOutputScintilla(QsciScintilla):
self.setWrapMode(QsciScintilla.WrapCharacter)
self.SendScintilla(QsciScintilla.SCI_SETHSCROLLBAR, 0)
self.runScut = QShortcut(QKeySequence(Qt.CTRL + Qt.Key_E), self)
self.runScut.setContext(Qt.WidgetShortcut)
self.runScut.activated.connect(self.enteredSelected)
# Reimplemeted copy action to prevent paste prompt (>>>,...) in command view
self.copyShortcut = QShortcut(QKeySequence.Copy, self)
self.copyShortcut.activated.connect(self.copy)