mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
feat(shortcut): Keyboard Navigation (#168)
* chore: remove sliding menu * feat(ui): sheet * feat: shortcut component * chore: register new shortcut component to layout * fix: react attr naming * fix: set default to false for shortcut * feat(store): keydown-manager * feat(hooks): keyboard manager * chore: use util from base for la-editor * chore: use util from base for minimal-tiptap-editor * chore(utils): keyboard * chore: use new keyboard manager * fix: uniqueness of certain component * feat: global key handler * chore: implement new key handler
This commit is contained in:
3
web/store/keydown-manager.ts
Normal file
3
web/store/keydown-manager.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { atom } from "jotai"
|
||||
|
||||
export const keyboardDisableSourcesAtom = atom<Set<string>>(new Set<string>())
|
||||
@@ -5,4 +5,3 @@ export const toggleCollapseAtom = atom(
|
||||
get => get(isCollapseAtom),
|
||||
(get, set) => set(isCollapseAtom, !get(isCollapseAtom))
|
||||
)
|
||||
export const showHotkeyPanelAtom = atom(false)
|
||||
|
||||
Reference in New Issue
Block a user