GUI: replace backtab with Shift+Tab in ShortcutEdit
This commit is contained in:
parent
5b7696219e
commit
233a2670d2
|
@ -63,6 +63,9 @@ void ShortcutEdit::keyPressEvent(QKeyEvent* event)
|
|||
}
|
||||
}
|
||||
|
||||
// replace Backtab with Shift+Tab
|
||||
if((keyInt & Qt::Key_Backtab) == Qt::Key_Backtab)
|
||||
keyInt = (keyInt & ~Qt::Key_Backtab) | Qt::SHIFT | Qt::Key_Tab;
|
||||
|
||||
// display key combination
|
||||
setText(QKeySequence(keyInt).toString(QKeySequence::NativeText));
|
||||
|
|
Loading…
Reference in New Issue