Kaydet (Commit) 8ff55c16 authored tarafından Jim Raykowski's avatar Jim Raykowski

tdf#116869 Fix unable to access sidebar tab bar using keyboard

...when sidebar is floating and deck has one panel

Change-Id: Ic741efbfbaf60241b360470c9bc736743f18f0ed
Reviewed-on: https://gerrit.libreoffice.org/61052
Tested-by: Jenkins
Reviewed-by: 's avatarJim Raykowski <raykowj@gmail.com>
üst 2cef68a6
......@@ -596,8 +596,11 @@ IMPL_LINK(FocusManager, ChildEventListener, VclWindowEvent&, rEvent, void)
switch (pKeyEvent->GetKeyCode().GetCode())
{
case KEY_ESCAPE:
// Return focus back to the panel title.
FocusPanel(aLocation.mnIndex, true);
// Return focus to tab bar sidebar settings button or panel title.
if (!IsDeckTitleVisible() && maPanels.size() == 1)
FocusButton(0);
else
FocusPanel(aLocation.mnIndex, true);
break;
case KEY_TAB:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment