fix hotkey conflict with input element
This commit is contained in:
1 parent
bb40b4fd5b
commit
10c417808b
1 file changed
+3
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user