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,
|
keysRef,
|
||||||
(e, key) => {
|
(e, key) => {
|
||||||
|
if (e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopImmediatePropagation();
|
e.stopImmediatePropagation();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|||||||
Reference in new issue
Block a user