/** localStorage key for the "disable single-key shortcuts" preference * (issue #170, WCAG 2.1.4): `e` (edit mode) and `/` (search) can misfire * for speech-input users, so they must be switch-offable. */ export const SINGLE_KEY_SHORTCUTS_KEY = 'ui.singleKeyShortcuts.disabled'; /** Read at keypress time so the toggle needs no cross-component state. */ export function singleKeyShortcutsDisabled(): boolean { try { return window.localStorage.getItem(SINGLE_KEY_SHORTCUTS_KEY) === 'true'; } catch { return false; } }