From 9e0dcfbaf0039d07609ed4e4a9ef9f1e2e1e6b55 Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Thu, 6 Oct 2022 16:22:41 +0200 Subject: tdf#151385 Only trigger mnemonics in dialogs when alt key is pressed Change-Id: I884afad38c64bd53fe4917418ed627f9c0674554 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141022 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt --- vcl/source/window/dlgctrl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl/source') diff --git a/vcl/source/window/dlgctrl.cxx b/vcl/source/window/dlgctrl.cxx index 161e4ff7863c..8db4402d9ef8 100644 --- a/vcl/source/window/dlgctrl.cxx +++ b/vcl/source/window/dlgctrl.cxx @@ -941,7 +941,7 @@ bool Window::ImplDlgCtrl( const KeyEvent& rKEvt, bool bKeyInput ) } } } - else + else if (aKeyCode.IsMod2()) // tdf#151385 { sal_Unicode c = rKEvt.GetCharCode(); if ( c ) -- cgit