Is there a way to emulate mouse-clicking on the Ace editor? The simple .click() method does not seem to work with elements "found" as part of the Ace editor. Actually, for my use case, it helps to
map, say, <esc><esc> to directly regain "focus" back to the Ace editor. (Or, <c-[><c-[> if one is used to replace ESC with Ctrl+[.)
I am having trouble returning the focus of the "text cursor" to the Ace editor after interacting with a writefull-suggestion-card object generated by Writefull, a spell-checker tool on Overleaf. Writefull is installed as a Chrome extension.
Is there a specific event to trigger that will regain the "keyboard focus" back to the Ace editor? Physically clicking anywhere in the editor with a mouse gets the job done.
Below is the status of the cursor when I cannot do anything with Vim key-bindings and with on key-bindings, respectively.
- With Vim key-bindings:
- Right after accepting the Wrifefull suggestion, the cursor changes to be an empty box:

- I need to click somewhere with mouse to get the normal cursor back:

- Without key-bindings
- Right after dismissing the Wrifefull thing, the cursor is gray, and I cannot type anything ==>

- After a mouse click somewhere on the editor window, the cursor restores to be solid color, and I can continue typing

All the best,
-Linfeng