summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2022-06-10 14:06:42 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2022-06-14 09:30:09 +0200
commit0037f2a071c9d8b94e841e6e7201770e08fdd85c (patch)
treecaf802ed297f3a9a66623b767b6760e6a6fa91bd /vcl
parentcebad7098e3ff74c4f45b6cd4ca4d7c01ff11ab4 (diff)
vcl: Trigger IconView action on space key as well
Handle space key the same as the return key. This e.g. allows to insert the selected element into the formula this way in Math again after the switch to IconView in commit d79c527c2a599c7821d27cf03b95cb79e2abe685 Date: Wed Jun 1 11:20:12 2022 +0300 Use IconView in SmElementsControl gtk3 was already behaving that way without this change in place. Change-Id: I061b286723fedf023551afbb2184abc946b54b9f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135592 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> (cherry picked from commit 025477e244df2cdb4917e202030c3cab0536550d) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135743 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/treelist/iconviewimpl.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/source/treelist/iconviewimpl.cxx b/vcl/source/treelist/iconviewimpl.cxx
index c350eb49c151..f3f2edfda464 100644
--- a/vcl/source/treelist/iconviewimpl.cxx
+++ b/vcl/source/treelist/iconviewimpl.cxx
@@ -710,6 +710,7 @@ bool IconViewImpl::KeyInput( const KeyEvent& rKEvt )
break;
case KEY_RETURN:
+ case KEY_SPACE:
{
bHandled = !m_pView->aDoubleClickHdl.Call(m_pView);
break;