vcl/source/treelist/iconviewimpl.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 0037f2a071c9d8b94e841e6e7201770e08fdd85c
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Fri Jun 10 14:06:42 2022 +0200
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Tue Jun 14 09:30:09 2022 +0200

    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.wegh...@posteo.de>
    (cherry picked from commit 025477e244df2cdb4917e202030c3cab0536550d)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135743
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

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;

Reply via email to