Keyboard modifiers with quick navigation
The quick navigation key disrupted keybindings with keyboard modifiers, like Ctrl-C for copy. This restricts the quick navigation only where no keyboard modifiers are active. Fixes #184
This commit is contained in:
parent
a30d5af948
commit
2e47ab0cd2
|
@ -1509,7 +1509,8 @@ class MyForm(settingsmixin.SMainWindow):
|
|||
else:
|
||||
self.on_action_InboxTrash()
|
||||
event.ignore()
|
||||
elif event.key() == QtCore.Qt.Key_N:
|
||||
elif QtGui.QApplication.queryKeyboardModifiers() == QtCore.Qt.NoModifier:
|
||||
if event.key() == QtCore.Qt.Key_N:
|
||||
currentRow = messagelist.currentRow()
|
||||
if currentRow < messagelist.rowCount() - 1:
|
||||
messagelist.selectRow(currentRow + 1)
|
||||
|
|
Loading…
Reference in New Issue
Block a user