vcl/source/window/dlgctrl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 40461c2dbb47f7432f538c7fd05da0e6916cc64e
Author:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
AuthorDate: Thu Oct 6 16:22:41 2022 +0200
Commit:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
CommitDate: Thu Oct 6 16:46:00 2022 +0200

    tdf#151385 Only trigger mnemonics in dialogs when alt key is pressed
    
    Change-Id: I884afad38c64bd53fe4917418ed627f9c0674554

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 )

Reply via email to