[Libreoffice-commits] core.git: sw/source

Maxim Monastirsky momonasmon at gmail.com
Sun Apr 29 10:04:57 UTC 2018


 sw/source/uibase/docvw/SidebarTxtControl.cxx |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

New commits:
commit 4f0598ebe9b65c8cdfcb59645d552e3e4d11fe03
Author: Maxim Monastirsky <momonasmon at gmail.com>
Date:   Sun Apr 29 11:04:08 2018 +0300

    tdf#117311 Ctrl/Shift+Insert do not work in Writer comments
    
    Change-Id: Ide4f3c57f67107995a90dff965a53324c052f715
    Reviewed-on: https://gerrit.libreoffice.org/53619
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Maxim Monastirsky <momonasmon at gmail.com>

diff --git a/sw/source/uibase/docvw/SidebarTxtControl.cxx b/sw/source/uibase/docvw/SidebarTxtControl.cxx
index f11890e34897..dfa24f2239fd 100644
--- a/sw/source/uibase/docvw/SidebarTxtControl.cxx
+++ b/sw/source/uibase/docvw/SidebarTxtControl.cxx
@@ -242,12 +242,9 @@ void SidebarTextControl::KeyInput( const KeyEvent& rKeyEvt )
     {
         mrSidebarWin.SwitchToFieldPos();
     }
-    else if ( nKey == KEY_INSERT )
+    else if ( rKeyCode.GetFullCode() == KEY_INSERT )
     {
-        if ( !rKeyCode.IsMod1() && !rKeyCode.IsMod2() )
-        {
-            mrSidebarWin.ToggleInsMode();
-        }
+        mrSidebarWin.ToggleInsMode();
     }
     else
     {


More information about the Libreoffice-commits mailing list