Skip to content

Commit 4de9038

Browse files
committed
fix
1 parent ac2f927 commit 4de9038

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/editor-mathfield/mathfield-private.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1309,6 +1309,7 @@ If you are using Vue, this may be because you are using the runtime-only build o
13091309

13101310
focus(options?: FocusOptions): void {
13111311
if (!this.hasFocus()) {
1312+
this.keyboardDelegate.focus();
13121313
this.connectToVirtualKeyboard();
13131314
this.onFocus();
13141315
this.model.announce('line');
@@ -1650,6 +1651,7 @@ If you are using Vue, this may be because you are using the runtime-only build o
16501651
this.blurred = false;
16511652

16521653
// As a side effect, a `focus` and `focusin` events will be dispatched
1654+
// @fixme: this call might not be necessary. There is a keyboardDelegate.focus() call in the focus() handler.
16531655
this.keyboardDelegate.focus();
16541656

16551657
this.stopCoalescingUndo();

0 commit comments

Comments
 (0)