Add keys alt+arrows to switch buffer

This commit is contained in:
Sebastien Helleu 2011-12-17 16:17:10 +01:00
parent cc80cd81ab
commit e59c898801

View file

@ -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: