summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-09-29 12:56:32 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2021-09-29 15:45:48 +0200
commitfdfa78e4c9f6087f38720c60373548f0a6481563 (patch)
tree439c9516c51f7e5d1d14dfb4dcca13587aedca41 /vcl
parent39a6ea1fea4c0a624d19b4a5f0bcfd0e4cad0a20 (diff)
Resolves: tdf#144783 shift+RETURN not searching backwards
In gtk nothing is happening, in gen its searching forwards. Align backends so that Activate is emitted only on a bare return in both and then handle shift+RETURN explicitly for the search widget Change-Id: I142002bbaf6b3aca83800a442096a4b1024fe097 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122748 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/edit.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index f5bf3c47b427..f3fcf87ce751 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -1675,10 +1675,8 @@ bool Edit::ImplHandleKeyEvent( const KeyEvent& rKEvt )
break;
case KEY_RETURN:
- if (maActivateHdl.IsSet())
- {
+ if (maActivateHdl.IsSet() && !rKEvt.GetKeyCode().GetModifier())
bDone = maActivateHdl.Call(*this);
- }
break;
default: