asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.86k stars 297 forks source link

Cursor focus when switching document tabs #646

Open 3rady opened 2 weeks ago

3rady commented 2 weeks ago

I am using AsciidocFX version 1.8.9 on Windows.

When you select a document tab, the tab's document edit area does not get cursor focus. So if you immediately start typing, the characters you type do not show up in the document. You must first click the mouse in the document area to give it focus, then characters you type are added.

I believe the behavior of automatically giving the document edit area focus is the normal convention, at least in Windows. I have not confirmed this, but I believe previous versions of AsciidocFX behaved in this way. I think this because suddenly at one point in time (I assume after an update) I noticed this behavior, and it trips me up constantly.

This is not a huge issue, but it adds friction to my workflow as I tend to switch tabs frequently and often forget to make that second mouse click.

newbie-02 commented 3 days ago

same in linux ( debian ), ver. 1.8.10 . Change would require to store cursor position somewhere, do we have that?