New navigation settings layout options and styling (#6645)

Co-authored-by: Zane Staggs <zane@squareup.com>
Co-authored-by: Zane <75694352+zanesq@users.noreply.github.com>
This commit is contained in:
Spence
2026-02-23 11:56:51 -05:00
committed by GitHub
parent c73bad9a9c
commit 5349dd6098
45 changed files with 2446 additions and 1585 deletions
+3 -1
View File
@@ -15,6 +15,7 @@ export interface KeyboardShortcuts {
findNext: string | null;
findPrevious: string | null;
alwaysOnTop: string | null;
toggleNavigation: string | null;
}
export type DefaultKeyboardShortcuts = {
@@ -58,6 +59,7 @@ export const defaultKeyboardShortcuts: DefaultKeyboardShortcuts = {
findNext: 'CommandOrControl+G',
findPrevious: 'CommandOrControl+Shift+G',
alwaysOnTop: 'CommandOrControl+Shift+T',
toggleNavigation: 'CommandOrControl+/',
};
export const defaultSettings: Settings = {
@@ -104,5 +106,5 @@ export function getKeyboardShortcuts(settings: Settings): KeyboardShortcuts {
quickLauncher: launcherShortcut,
};
}
return settings.keyboardShortcuts || defaultKeyboardShortcuts;
return { ...defaultKeyboardShortcuts, ...settings.keyboardShortcuts };
}