mirror of
https://github.com/mupen64plus/mupen64plus-ui-python.git
synced 2025-04-02 10:51:53 -04:00
commit
3a2a39fba7
1 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,7 @@
|
|||
import re
|
||||
|
||||
from PyQt5.QtWidgets import QDialog
|
||||
from PyQt5.QtGui import QKeySequence
|
||||
|
||||
from m64py.opts import SDL2
|
||||
from m64py.core.defs import *
|
||||
|
@ -417,7 +418,7 @@ class Input(QDialog, Ui_InputDialog):
|
|||
return SCANCODE2KEYCODE[SDL_GetScancodeFromName(text)]
|
||||
else:
|
||||
try:
|
||||
key = QKeySequence(text).__int__()
|
||||
key = QKeySequence(text)[0]
|
||||
return QT2SDL[key]
|
||||
except KeyError:
|
||||
return None
|
||||
|
|
Loading…
Add table
Reference in a new issue