Skip to content

Commit 1c6d482

Browse files
Replace key() method with nativeVirtualKey()
1 parent 1fb549c commit 1c6d482

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GUI/ActionHotkeyWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void ActionHotkeyWidget::keyPressEvent(QKeyEvent* event)
6767
return;
6868
}
6969

70-
int key = event->key();
70+
int key = event->nativeVirtualKey();
7171
if (PROGRAM_CONSTANTS->GetAllowedKeys().contains(static_cast<Qt::Key>(key)))
7272
{
7373
// Set new text

0 commit comments

Comments
 (0)