LR SDK: How to avoid that non-interactive LrView elements "steal" the focus when clicking on them?
The UI of my Focus-Points plugin comprises different elements for displaying images and text, as well as buttons and links. To allow operation using keyboard shortcuts, there is a 'hidden' edit field with tiny dimensions that records keyboard input and uses a validate() function to interpret and process shortcut characters.
It is possible to mix mouse and keyboard operation of interactive controls (except for using the TAB key), but when clicking any non-interactive control (e.g. static_text) the edit_field loses focus.
I have tried different ChatGPT suggestions (wrap non-interactive controls in a spacer or attach mouse_down functions that consume clicks) but none of them worked.
Is this a matter of fact and a limitation of the SDK, or does anyone know of a way around it?