1
0
Fork 0

GUI: replace backtab with Shift+Tab in ShortcutEdit

This commit is contained in:
Duncan Ogilvie 2017-11-17 13:59:38 +01:00
parent 5b7696219e
commit 233a2670d2
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 3 additions and 0 deletions

View File

@ -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));