mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
update DrissionPage/common/keys.py.
Signed-off-by: g1879 <g1879@qq.com>
This commit is contained in:
parent
609b8b06df
commit
e0c1968698
@ -367,7 +367,7 @@ def keyDescriptionForString(_modifiers: int, keyString: str) -> Dict: # noqa: C
|
|||||||
'text': '',
|
'text': '',
|
||||||
'location': 0}
|
'location': 0}
|
||||||
|
|
||||||
definition: Dict = _keyDefinitions.get(keyString) # type: ignore
|
definition: Dict = keyDefinitions.get(keyString) # type: ignore
|
||||||
if not definition:
|
if not definition:
|
||||||
raise ValueError(f'未知按键:{keyString}')
|
raise ValueError(f'未知按键:{keyString}')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user