diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-01-09 10:32:37 +0000 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-01-10 09:03:30 +0000 |
commit | 474038abe7155bf7d85ae5a2e305d5ba37ab35ea (patch) | |
tree | 7b9e79d0c4513ce6e5f4f9cbe2a19c4684c6a936 | |
parent | tdf#152784: RTF import: more default paragraph params (diff) | |
download | core-474038abe7155bf7d85ae5a2e305d5ba37ab35ea.tar.gz core-474038abe7155bf7d85ae5a2e305d5ba37ab35ea.zip |
Resolves: tdf#107625 make ctrl+tab act like tab when tab is an input char
Change-Id: Ic3d698920fc94df1adf142e4cbab9725ae45273c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145131
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r-- | vcl/source/edit/vclmedit.cxx | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/vcl/source/edit/vclmedit.cxx b/vcl/source/edit/vclmedit.cxx index d24e118b4f7e..3008a7e887d0 100644 --- a/vcl/source/edit/vclmedit.cxx +++ b/vcl/source/edit/vclmedit.cxx @@ -724,8 +724,19 @@ void TextWindow::KeyInput( const KeyEvent& rKEvent ) } else if ( nCode == KEY_TAB ) { - if ( !mbIgnoreTab || rKEvent.GetKeyCode().IsMod1() ) - bDone = mpExtTextView->KeyInput( rKEvent ); + if (!mbIgnoreTab) + { + if (!rKEvent.GetKeyCode().IsMod1()) + bDone = mpExtTextView->KeyInput(rKEvent); + else + { + // tdf#107625 make ctrl+tab act like tab when MultiLine Edit normally accepts tab as an input char + vcl::KeyCode aKeyCode(rKEvent.GetKeyCode().GetCode(), rKEvent.GetKeyCode().GetModifier() & ~KEY_MOD1); + KeyEvent aKEventWithoutMod1(rKEvent.GetCharCode(), aKeyCode, rKEvent.GetRepeat()); + Window::KeyInput(aKEventWithoutMod1); + bDone = true; + } + } } else { |