Skip to content

Commit

Permalink
Replace key() method with nativeVirtualKey()
Browse files Browse the repository at this point in the history
  • Loading branch information
MahBoiDeveloper committed Feb 3, 2025
1 parent 1fb549c commit 1c6d482
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GUI/ActionHotkeyWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void ActionHotkeyWidget::keyPressEvent(QKeyEvent* event)
return;
}

int key = event->key();
int key = event->nativeVirtualKey();
if (PROGRAM_CONSTANTS->GetAllowedKeys().contains(static_cast<Qt::Key>(key)))
{
// Set new text
Expand Down

0 comments on commit 1c6d482

Please sign in to comment.