e.stopPropagation()}
onkeydown={() => {}}
>
diff --git a/cptr/frontend/src/lib/components/QuickOpen.svelte b/cptr/frontend/src/lib/components/QuickOpen.svelte
index cdf4eba..ffbbed4 100644
--- a/cptr/frontend/src/lib/components/QuickOpen.svelte
+++ b/cptr/frontend/src/lib/components/QuickOpen.svelte
@@ -1,6 +1,7 @@
+
+
+
+
+
+
Keyboard Shortcuts
+
+
+
+
+
+ Command
+ Keybinding
+
+
+
+ {#each ACTION_IDS as actionId}
+ {@const chord = $keybindings[actionId]}
+ {@const isRecording = recordingAction === actionId}
+ {@const conflict = getConflict(actionId, chord)}
+
+
+
+
{ACTION_LABELS[actionId]}
+
{ACTION_DESCRIPTIONS[actionId]}
+
+
+
+ {#if isRecording}
+ Press keys…
+ {:else if chord}
+
+ {:else}
+
+ {/if}
+
+ {#if conflict}
+ !
+ {/if}
+
+
+ {/each}
+
+
+
+ Click a binding to rebind. Press Esc to cancel.
+
+
+
+
+
diff --git a/cptr/frontend/src/lib/components/SettingsModal.svelte b/cptr/frontend/src/lib/components/SettingsModal.svelte
index 612d7cb..a496403 100644
--- a/cptr/frontend/src/lib/components/SettingsModal.svelte
+++ b/cptr/frontend/src/lib/components/SettingsModal.svelte
@@ -3,17 +3,18 @@
import Modal from "./Modal.svelte";
import General from "./Settings/General.svelte";
import Account from "./Settings/Account.svelte";
+ import Keyboard from "./Settings/Keyboard.svelte";
import About from "./Settings/About.svelte";
import { t } from '$lib/i18n';
interface Props {
onclose: () => void;
- initialTab?: 'general' | 'account' | 'about';
+ initialTab?: 'general' | 'keyboard' | 'account' | 'about';
}
let { onclose, initialTab = 'general' }: Props = $props();
- let activeTab = $state<"general" | "account" | "about">(initialTab);
+ let activeTab = $state<"general" | "keyboard" | "account" | "about">(initialTab);
{$t('settings.back')}
- {#each [{ id: "general", label: $t('settings.general'), icon: "settings" }, { id: "account", label: $t('settings.account'), icon: "user" }, { id: "about", label: $t('settings.about'), icon: "info" }] as tab}
+ {#each [{ id: "general", label: $t('settings.general'), icon: "settings" }, { id: "keyboard", label: "Keyboard", icon: "terminal" }, { id: "account", label: $t('settings.account'), icon: "user" }, { id: "about", label: $t('settings.about'), icon: "info" }] as tab}