summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2018-04-29 11:04:08 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2018-04-29 12:04:36 +0200
commit4f0598ebe9b65c8cdfcb59645d552e3e4d11fe03 (patch)
tree0401a385d7157b3de1598e4d50c926db0a789e81
parent3df6b510a6dfeb940a799aaefa9a5f550b384667 (diff)
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@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
-rw-r--r--sw/source/uibase/docvw/SidebarTxtControl.cxx7
1 files changed, 2 insertions, 5 deletions
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
{