fix hotkey conflict with input element

This commit is contained in:
codetypes committed 2025-05-08 18:34:59 +08:00
1 parent bb40b4fd5b
commit 10c417808b
1 file changed
+3
+3
View File
@@ -117,6 +117,9 @@ export const Workspace: FC = () => {
],
keysRef,
(e, key) => {
if (e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement) {
return;
}
e.preventDefault();
e.stopImmediatePropagation();
e.stopPropagation();