This commit is contained in:
Anton Bracke 2022-02-22 20:02:13 +01:00
parent 92ec433539
commit ce3d829041
No known key found for this signature in database
GPG Key ID: B1222603899C6B25

View File

@ -28,7 +28,7 @@ export function loadShortcuts() {
} }
} }
export function saveShortcut(shortcut: keyof SettingsData["shortcuts"], key: string | null) { export function saveShortcut(shortcut: keyof SettingsData["shortcuts"], key: string) {
const shortcuts = settings.get("shortcuts") || <SettingsData["shortcuts"]>{}; const shortcuts = settings.get("shortcuts") || <SettingsData["shortcuts"]>{};
shortcuts[shortcut] = key; shortcuts[shortcut] = key;
settings.set("shortcuts", shortcuts); settings.set("shortcuts", shortcuts);