Prevent g c from leaking into global shortcuts

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
dotta
2026-04-08 11:12:01 -05:00
parent ba5cb34bed
commit e15b5412ec
3 changed files with 64 additions and 0 deletions
+4
View File
@@ -20,6 +20,10 @@ export function useKeyboardShortcuts({
if (!enabled) return;
function handleKeyDown(e: KeyboardEvent) {
if (e.defaultPrevented) {
return;
}
// Don't fire shortcuts when typing in inputs
if (isKeyboardShortcutTextInputTarget(e.target)) {
return;