Fix: Prevent Ctrl+A from selecting timeline when input is focused

This commit is contained in:
rohit 2025-07-27 23:52:59 +05:30
parent 14475dc9a6
commit f6f26fc635
1 changed files with 9 additions and 0 deletions

View File

@ -24,6 +24,15 @@ export function useKeybindingsListener() {
const boundAction = keybindings[binding];
if (!boundAction) return;
const activeElement = document.activeElement;
const isTextInput =
activeElement &&
(activeElement.tagName === "INPUT" ||
activeElement.tagName === "TEXTAREA" ||
(activeElement as HTMLElement).isContentEditable);
if (isTextInput) return;
ev.preventDefault();
// Handle actions with default arguments