Add keys alt+arrows to switch buffer
This commit is contained in:
parent
cc80cd81ab
commit
e59c898801
1 changed files with 4 additions and 0 deletions
|
@ -48,8 +48,12 @@ class InputLineEdit(QtGui.QLineEdit):
|
|||
bar = self.scroll_widget.verticalScrollBar()
|
||||
if modifiers == QtCore.Qt.ControlModifier and key == QtCore.Qt.Key_PageUp:
|
||||
self.bufferSwitchPrev.emit()
|
||||
elif modifiers == QtCore.Qt.AltModifier and key in (QtCore.Qt.Key_Left, QtCore.Qt.Key_Up):
|
||||
self.bufferSwitchPrev.emit()
|
||||
elif modifiers == QtCore.Qt.ControlModifier and key == QtCore.Qt.Key_PageDown:
|
||||
self.bufferSwitchNext.emit()
|
||||
elif modifiers == QtCore.Qt.AltModifier and key in (QtCore.Qt.Key_Right, QtCore.Qt.Key_Down):
|
||||
self.bufferSwitchNext.emit()
|
||||
elif modifiers == QtCore.Qt.AltModifier and key == QtCore.Qt.Key_PageUp:
|
||||
bar.setValue(bar.value() - (bar.pageStep() / 10))
|
||||
elif modifiers == QtCore.Qt.AltModifier and key == QtCore.Qt.Key_PageDown:
|
||||
|
|
Loading…
Reference in a new issue