qol: don't show command prompt on / if anything is focused
This commit is contained in:
1 parent
860e0cafab
commit
ded69cd9c7
1 file changed
+4
-1
@@ -127,7 +127,10 @@
|
||||
}
|
||||
|
||||
function handleKeydown(event: KeyboardEvent) {
|
||||
if ((event.ctrlKey && event.key === 'k') || event.key == '/') {
|
||||
if (
|
||||
(event.ctrlKey && event.key === 'k') ||
|
||||
(event.key == '/' && document.activeElement == document.body)
|
||||
) {
|
||||
event.preventDefault()
|
||||
togglePalette()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user