Browse Source

fix: propagate keydown events from excalidraw-wysiwyg inputs (#5099)

* fix: allow propagation for keydown events originating from `excalidraw-wysiwyg`

* revert check on the handleKeyDown function
pull/5111/head
Achille Lacoin 4 years ago committed by GitHub
parent
commit
ea51251fe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/element/textWysiwyg.tsx

2
src/element/textWysiwyg.tsx

@ -316,8 +316,6 @@ export const textWysiwyg = ({ @@ -316,8 +316,6 @@ export const textWysiwyg = ({
}
editable.onkeydown = (event) => {
event.stopPropagation();
if (!event.shiftKey && actionZoomIn.keyTest(event)) {
event.preventDefault();
app.actionManager.executeAction(actionZoomIn);

Loading…
Cancel
Save