summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2022-10-06 16:22:41 +0200
committerSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2022-10-06 16:46:00 +0200
commit40461c2dbb47f7432f538c7fd05da0e6916cc64e (patch)
treea8e61d6ef87331683cb8f576b60b3d5f208dfb95 /vcl
parentdf61e75834048d77a3e0bbbf1e465fc822256578 (diff)
tdf#151385 Only trigger mnemonics in dialogs when alt key is pressed
Change-Id: I884afad38c64bd53fe4917418ed627f9c0674554
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/dlgctrl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/dlgctrl.cxx b/vcl/source/window/dlgctrl.cxx
index f63cb6782b39..ed95662e7677 100644
--- a/vcl/source/window/dlgctrl.cxx
+++ b/vcl/source/window/dlgctrl.cxx
@@ -939,7 +939,7 @@ bool Window::ImplDlgCtrl( const KeyEvent& rKEvt, bool bKeyInput )
}
}
}
- else
+ else if (aKeyCode.IsMod2()) // tdf#151385
{
sal_Unicode c = rKEvt.GetCharCode();
if ( c )