update DrissionPage/common/keys.py.

Signed-off-by: g1879 <g1879@qq.com>
This commit is contained in:
g1879 2023-02-20 10:03:51 +00:00 committed by Gitee
parent 609b8b06df
commit e0c1968698
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -367,7 +367,7 @@ def keyDescriptionForString(_modifiers: int, keyString: str) -> Dict: # noqa: C
'text': '',
'location': 0}
definition: Dict = _keyDefinitions.get(keyString) # type: ignore
definition: Dict = keyDefinitions.get(keyString) # type: ignore
if not definition:
raise ValueError(f'未知按键:{keyString}')