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

New commits:
commit ae41ac6a621ce4ee7445d8964ae30ac99ce94f37
Author:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
AuthorDate: Thu Oct 6 16:22:41 2022 +0200
Commit:     Thorsten Behrens <thorsten.behr...@allotropia.de>
CommitDate: Thu Oct 13 10:08:33 2022 +0200

    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 <samuel.mehrbr...@allotropia.de>
    (cherry picked from commit 9e0dcfbaf0039d07609ed4e4a9ef9f1e2e1e6b55)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141191
    Reviewed-by: Thorsten Behrens <thorsten.behr...@allotropia.de>

diff --git a/vcl/source/window/dlgctrl.cxx b/vcl/source/window/dlgctrl.cxx
index 328fcd35ff6a..5aac19d02b30 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 )

Reply via email to