Skip to content

Commit 87ab41c

Browse files
committed
Fix shift+tab behavior in MathInputView
1 parent d2391f9 commit 87ab41c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

packages/ckeditor5-math/src/ui/mathinputview.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,14 @@ export default class MathInputView extends View {
203203
// Inline shortcut configuration is optional; ignore failures to avoid breaking the math field.
204204
}
205205
mf.addEventListener( 'keydown', ev => {
206-
if ( ev.key === 'Tab' && !ev.shiftKey ) {
207-
ev.preventDefault();
208-
ev.stopImmediatePropagation();
209-
this.latexTextAreaView.focus();
206+
if ( ev.key === 'Tab' ) {
207+
if ( ev.shiftKey ) {
208+
ev.preventDefault();
209+
} else {
210+
ev.preventDefault();
211+
ev.stopImmediatePropagation();
212+
this.latexTextAreaView.focus();
213+
}
210214
}
211215
}, { capture: true } );
212216
mf.addEventListener( 'input', () => {

0 commit comments

Comments
 (0)