QKeySequenceEdit: If the next key is Key_unknown then it should be ignored
When triggering a combination of keys which is causing a dead key then it will send Key_unknown which is not a valid key to be used in a shortcut so it should just skip past it as if it were a modifier key. Task-number: QTBUG-57932 Change-Id: I16e004b84f3aa854f8f8f2bbdf86beb6d764de48 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>bb10
parent
17515f1b62
commit
e12b9b0db3
|
|
@ -257,7 +257,8 @@ void QKeySequenceEdit::keyPressEvent(QKeyEvent *e)
|
|||
if (nextKey == Qt::Key_Control
|
||||
|| nextKey == Qt::Key_Shift
|
||||
|| nextKey == Qt::Key_Meta
|
||||
|| nextKey == Qt::Key_Alt) {
|
||||
|| nextKey == Qt::Key_Alt
|
||||
|| nextKey == Qt::Key_unknown) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue