소스 검색

fix: typing `_+` in wysiwyg not working (#4681)

David Luzar 3 년 전
부모
커밋
631a228ca1
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/element/textWysiwyg.tsx

+ 2 - 2
src/element/textWysiwyg.tsx

@@ -291,11 +291,11 @@ export const textWysiwyg = ({
   editable.onkeydown = (event) => {
     event.stopPropagation();
 
-    if (actionZoomIn.keyTest(event)) {
+    if (!event.shiftKey && actionZoomIn.keyTest(event)) {
       event.preventDefault();
       app.actionManager.executeAction(actionZoomIn);
       updateWysiwygStyle();
-    } else if (actionZoomOut.keyTest(event)) {
+    } else if (!event.shiftKey && actionZoomOut.keyTest(event)) {
       event.preventDefault();
       app.actionManager.executeAction(actionZoomOut);
       updateWysiwygStyle();