summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2024-02-22 22:47:10 -0900
committerJim Raykowski <raykowj@gmail.com>2024-02-23 17:56:13 +0100
commit45e3abcb79fb1ccf7d813a7b080a8ad70bdcb5b1 (patch)
treea2245fa7c5959bc05b5f8618edd57fed1c8af1d1 /vcl/source
parentfda653f6e1e7a7e3c0db037cb2d0046a1790e641 (diff)
tdf#159837 Make keyboard shortcuts work when focus is in toolbar
for SalInstanceBuilder based VCL backends Change-Id: I36764e7199a0f7292b331da3d187fbe939b4becc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163800 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/window/toolbox.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index fc9effe58065..272263072a36 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -4435,7 +4435,9 @@ void ToolBox::KeyInput( const KeyEvent& rKEvt )
// do nothing to avoid key presses going into the document
// while the toolbox has the focus
// just forward function and special keys and combinations with Alt-key
- if( aKeyGroup == KEYGROUP_FKEYS || aKeyGroup == KEYGROUP_MISC || aKeyCode.IsMod2() )
+ // and Ctrl-key
+ if( aKeyGroup == KEYGROUP_FKEYS || aKeyGroup == KEYGROUP_MISC || aKeyCode.IsMod2()
+ || aKeyCode.IsMod1() )
bForwardKey = true;
}
}