mirror of
https://github.com/zadam/trilium.git
synced 2026-01-16 11:34:25 +01:00
Fix shift+tab behavior in MathInputView
This commit is contained in:
parent
d2391f94c0
commit
87ab41c80c
@ -203,10 +203,14 @@ export default class MathInputView extends View {
|
||||
// Inline shortcut configuration is optional; ignore failures to avoid breaking the math field.
|
||||
}
|
||||
mf.addEventListener( 'keydown', ev => {
|
||||
if ( ev.key === 'Tab' && !ev.shiftKey ) {
|
||||
ev.preventDefault();
|
||||
ev.stopImmediatePropagation();
|
||||
this.latexTextAreaView.focus();
|
||||
if ( ev.key === 'Tab' ) {
|
||||
if ( ev.shiftKey ) {
|
||||
ev.preventDefault();
|
||||
} else {
|
||||
ev.preventDefault();
|
||||
ev.stopImmediatePropagation();
|
||||
this.latexTextAreaView.focus();
|
||||
}
|
||||
}
|
||||
}, { capture: true } );
|
||||
mf.addEventListener( 'input', () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user