If a toolbar is floating then when a button is clicked on it the toolbar window will end up taking focus. This is kind of confusing if the button does an action such as inserting a table row. In that case you want the cursor to be visible in the document and to be able to immediately start typing in the new row. Note that despite the description in the bug report I think this is a general problem on all platforms and with all toolbar buttons. For example the cursor “disappears” in the same surprising way if you press the button to insert a footnote. To fix the problem this patch just makes it pass the focus to the toolbar’s frame before dispatching the command. This is similar to what is already done in the code for the font toolbar to handle when a new font is selected. Change-Id: Ifd941fb4ae295c57d465f4c8ff798913ce4a14c8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192649 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
UNO Framework
Toolbars, menus, UNO stuff, including accelerators and interaction, etc.