Qt: add missing key auto repeat checks

This commit is contained in:
Megamouse 2021-06-12 15:04:33 +02:00
parent d3ff67ffb5
commit 35a380676e
7 changed files with 51 additions and 4 deletions

View file

@ -149,6 +149,12 @@ void gs_frame::showEvent(QShowEvent *event)
void gs_frame::keyPressEvent(QKeyEvent *keyEvent)
{
if (keyEvent->isAutoRepeat())
{
keyEvent->ignore();
return;
}
// NOTE: needs to be updated with keyboard_pad_handler::processKeyEvent
switch (keyEvent->key())