Revert "feat: add customizable keyboard navigation"
This commit is contained in:
1 parent
4e7c37bd89
commit
f9a6e775f3
17 files changed
+39
-306
No files matched your search
@@ -1,6 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { t } from '$lib/i18n/translations'
|
||||
import { settings } from '$lib/settings.svelte'
|
||||
import { Modal, Spinner } from 'mono-svelte'
|
||||
|
||||
interface Props {
|
||||
@@ -11,8 +10,8 @@
|
||||
|
||||
function handleKeydown(event: KeyboardEvent) {
|
||||
if (
|
||||
event.key == settings.keybinds.commandPalette.open.key &&
|
||||
document.activeElement == document.body
|
||||
(event.ctrlKey && event.key === 'p') ||
|
||||
(event.key == '/' && document.activeElement == document.body)
|
||||
) {
|
||||
event.preventDefault()
|
||||
open = !open
|
||||
|
||||
Reference in new issue
Block a user