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

New commits:
commit c346da70965a1896fbced456e49213d60cd50cbc
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Fri Jun 10 14:06:42 2022 +0200
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Mon Jun 13 20:23:22 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 c66de992e1cb4f7f87035191832b5e28295c3477)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135702

diff --git a/vcl/source/treelist/iconviewimpl.cxx 
b/vcl/source/treelist/iconviewimpl.cxx
index 60cdf2d32b8f..6839ff1db5da 100644
--- a/vcl/source/treelist/iconviewimpl.cxx
+++ b/vcl/source/treelist/iconviewimpl.cxx
@@ -696,6 +696,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