From e59c8988014eabf0ac1fcd432c7108780321b0ea Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 17 Dec 2011 16:17:10 +0100 Subject: [PATCH] Add keys alt+arrows to switch buffer --- src/qweechat/input.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/qweechat/input.py b/src/qweechat/input.py index c21d802..890fb2a 100644 --- a/src/qweechat/input.py +++ b/src/qweechat/input.py @@ -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: