Explorar o código

fix: indenting via `tab` clashing with IME compositor (#6258)

Hikaru Yoshino %!s(int64=2) %!d(string=hai) anos
pai
achega
1e816e87bf
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/element/textWysiwyg.tsx

+ 3 - 1
src/element/textWysiwyg.tsx

@@ -463,7 +463,9 @@ export const textWysiwyg = ({
           event.code === CODES.BRACKET_RIGHT))
     ) {
       event.preventDefault();
-      if (event.shiftKey || event.code === CODES.BRACKET_LEFT) {
+      if (event.isComposing) {
+        return;
+      } else if (event.shiftKey || event.code === CODES.BRACKET_LEFT) {
         outdent();
       } else {
         indent();