Feat: Markers

This commit is contained in:
Youwes09
2026-04-02 18:07:49 -05:00
parent 454a674ada
commit 51bb6cdab9
6 changed files with 476 additions and 16 deletions
+3
View File
@@ -13,6 +13,7 @@ export interface Keybinds {
toggleFullscreen: string;
openSettings: string;
toggleBookmark: string;
toggleMarker: string;
}
export const DEFAULT_KEYBINDS: Keybinds = {
@@ -28,6 +29,7 @@ export const DEFAULT_KEYBINDS: Keybinds = {
toggleFullscreen: "f",
openSettings: "o",
toggleBookmark: "m",
toggleMarker: "n",
};
export const KEYBIND_LABELS: Record<keyof Keybinds, string> = {
@@ -43,6 +45,7 @@ export const KEYBIND_LABELS: Record<keyof Keybinds, string> = {
toggleFullscreen: "Toggle fullscreen",
openSettings: "Open settings",
toggleBookmark: "Toggle bookmark",
toggleMarker: "Toggle marker",
};
export function eventToKeybind(e: KeyboardEvent): string {