mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-21 17:32:41 +00:00
feat: enable stricter type checking options
feat: make the app more fault tolerant
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
$: info =
|
||||
typeof action === "number"
|
||||
? KEYMAP_CODES[action] ?? { code: action }
|
||||
? KEYMAP_CODES.get(action) ?? { code: action }
|
||||
: action;
|
||||
$: dynamicMapping = info.keyCode && $osLayout.get(info.keyCode);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user