Inverted tab change direction for pgup/dn - I have a feeling the old one would be irritating.
This commit is contained in:
parent
c1dad65f56
commit
02e1e0e012
1 changed files with 4 additions and 2 deletions
6
convo.py
6
convo.py
|
@ -95,9 +95,11 @@ class PesterTabWindow(QtGui.QFrame):
|
|||
|
||||
elif (mods == QtCore.Qt.ControlModifier and
|
||||
keypress in (QtCore.Qt.Key_PageUp, QtCore.Qt.Key_PageDown)):
|
||||
if keypress == QtCore.Qt.Key_PageUp:
|
||||
# Inverted controls. Might add an option for this if people want
|
||||
# it.
|
||||
if keypress == QtCore.Qt.Key_PageDown:
|
||||
direction = 1
|
||||
elif keypress == QtCore.Qt.Key_PageDown:
|
||||
elif keypress == QtCore.Qt.Key_PageUp:
|
||||
direction = -1
|
||||
# ...Processing...
|
||||
tabs = self.tabs
|
||||
|
|
Loading…
Reference in a new issue