path: root/vcl/source/window
diff options
authorNiklas Johansson <>2015-10-01 14:22:21 +0200
committerCaolán McNamara <>2015-10-02 13:25:45 +0000
commitb80be50268f534e215d36d69b93d3f51d9410ace (patch)
treeec6ca55a39232d151146f67900af647f27f74ef7 /vcl/source/window
parentd2281e20d96c640998530f3fb577b87ee85426f1 (diff)
Allow non ASCII chars as accelerator keys
Non ASCII characters like åäö can be used as accelerator keys (Alt+<x>). This already works however at the moment it is not exposed properly to accessibility tools such as screen readers. After this patch at least NVDA gets information about accelerator keys that are non ascii. On Linux we need to adapt code in vcl/unx/atk/a11y/atkaction.cxx. There is also vcl/source/window/dlgctrl.cxx#Window::GetActivationKey should probably have similar treatment and I guess that it is related to accelerator keys in dialogs but I need to confirm that. I'm a bit unsure how to best do that so I'll save it for later. Change-Id: I1f1509a26d781011d217670266bd10b2107811d5 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Caolán McNamara <> Tested-by: Caolán McNamara <>
Diffstat (limited to 'vcl/source/window')
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index 2505afa94939..34804c1a3555 100644
--- a/vcl/source/window/menu.cxx
+++ b/vcl/source/window/menu.cxx
@@ -862,8 +862,8 @@ KeyEvent Menu::GetActivationKey( sal_uInt16 nItemId ) const
nCode = KEY_A + (cAccel-'A');
else if( cAccel >= '0' && cAccel <= '9' )
nCode = KEY_0 + (cAccel-'0');
- if(nCode )
- aRet = KeyEvent( cAccel, KeyCode( nCode, KEY_MOD2 ) );
+ aRet = KeyEvent( cAccel, KeyCode( nCode, KEY_MOD2 ) );