Skip to content

Commit

Permalink
fix(ux): keymaps: prevent default (#1200)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssiyad authored May 19, 2023
1 parent 9746e1d commit 1cf810e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion desk/src/stores/keymap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ class Shortcut {
}

export const useKeymapStore = defineStore("keymap", () => {
const keys = useMagicKeys();
const keys = useMagicKeys({
passive: false,
onEventFired(e) {
e.preventDefault();
},
});
const items: Ref<Array<Shortcut>> = ref([]);
const isOpen = ref(false);

Expand Down

0 comments on commit 1cf810e

Please sign in to comment.