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

pull/6224/head^2
Hikaru Yoshino 2 years ago committed by GitHub
parent 5368ddef74
commit 1e816e87bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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();

Loading…
Cancel
Save