diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-08-08 13:50:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-08-08 13:51:00 +0100 |
commit | 8f25e553b91f5ed3544c580a450658cc76ffed56 (patch) | |
tree | f78ba254fd236266a5fbc5cb901661af1230eaf6 | |
parent | 450a8ee1f49ca32184103a7ddc579351cfc24a6d (diff) |
Resolves: tdf#99324 let bare tabpage in dialogs get toggled auto-mnemonics
Change-Id: Icdf2a908d131ff05a1c00b7305686edba26d4b24
-rw-r--r-- | vcl/source/window/syswin.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx index 1a75e4dbe976..0bc7a0a75d15 100644 --- a/vcl/source/window/syswin.cxx +++ b/vcl/source/window/syswin.cxx @@ -153,6 +153,18 @@ bool Accelerator::ToggleMnemonicsOnHierarchy(const CommandEvent& rCEvent, vcl::W pTabPageChild = nextLogicalChildOfParent(pTabPage, pTabPageChild); } } + else if ( pGetChild->GetType() == WINDOW_TABPAGE ) + { + // bare tabpage without tabcontrol parent (options dialog) + vcl::Window* pTabPageChild = firstLogicalChildOfParent( pGetChild ); + + // and go through its children + while ( pTabPageChild ) + { + ImplHandleControlAccelerator(pTabPageChild, bShowAccel); + pTabPageChild = nextLogicalChildOfParent(pGetChild, pTabPageChild); + } + } ImplHandleControlAccelerator( pGetChild, bShowAccel ); pGetChild = nextLogicalChildOfParent(pWindow, pGetChild); |