Steps to reproduce in Writer:
1) Menu > View > Sidebar
2) click on an unopened deck tab in the sidebar tabbar to open a deck
deck opens and focus is on clicked tab in sidebar tabbar
3) press Enter or Space key
Focus is hidden in collapsed deck.
Focus remains on tabbar tab. This would be consistent with mouse click behavior.
Build ID: 566050c5f3f3e54bfec115f9dba693404ca91770
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk2;
Locale: en-US (en_US.UTF-8); Calc: threaded
Confirmed on Windows 10 Home 64-bit en-US with
Version: 220.127.116.11.alpha0+ (x64)
Build ID: 414ef6cb187dd3bbcc917dbedf3c0c1cc8668f60
CPU threads: 4; OS: Windows 10.0; UI render: GL;
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-08-21_00:13:04
Locale: en-US (en_US); Calc: threaded
The focus was set in https://cgit.freedesktop.org/libreoffice/core/commit/?id=a8605dc1619a2275b52e22a60c4ca0715e7ab07d, before it, the enter key didn't work with the sidebar...
Here is a patch that makes the Space key behavior the same as a mouse click. Focus remains on the tab button. This avoids focus from being hidden when the deck collapses. The patch also makes the Enter key never collapse the deck but to open it if collapsed and always place focus on the first panel title.
Comments and testing always appreciated.
Jim Raykowski committed a patch related to this issue.
It has been pushed to "master":
tdf#119461 Fix focus hidden on deck collapse
It will be available in 6.2.0.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.