[Libreoffice-commits] core.git: sc/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu May 6 09:40:03 UTC 2021


 sc/source/ui/pagedlg/tphfedit.cxx |   15 ++-------------
 1 file changed, 2 insertions(+), 13 deletions(-)

New commits:
commit de1c3bd004b069cd1796423e796999cf0737f823
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu May 6 09:20:35 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu May 6 11:39:27 2021 +0200

    allow ctrl+A to select all in calc header/footer dialog too
    
    Change-Id: Ie3142ced5ddf80a9dd49774d26e450318f18b641
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115170
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sc/source/ui/pagedlg/tphfedit.cxx b/sc/source/ui/pagedlg/tphfedit.cxx
index c2c6ac4f16f1..932b635fe37a 100644
--- a/sc/source/ui/pagedlg/tphfedit.cxx
+++ b/sc/source/ui/pagedlg/tphfedit.cxx
@@ -195,24 +195,13 @@ void ScEditWindow::SetCharAttributes()
 
 bool ScEditWindow::KeyInput( const KeyEvent& rKEvt )
 {
-    sal_uInt16 nKey =  rKEvt.GetKeyCode().GetModifier()
-                 + rKEvt.GetKeyCode().GetCode();
-
-    if ( nKey == KEY_TAB || nKey == KEY_TAB + KEY_SHIFT )
-    {
-        return false;
-    }
-    else if ( !m_xEditView->PostKeyEvent( rKEvt ) )
-    {
-        return false;
-    }
-    else if ( !rKEvt.GetKeyCode().IsMod1() && !rKEvt.GetKeyCode().IsShift() &&
+    if ( !rKEvt.GetKeyCode().IsMod1() && !rKEvt.GetKeyCode().IsShift() &&
                 rKEvt.GetKeyCode().IsMod2() && rKEvt.GetKeyCode().GetCode() == KEY_DOWN )
     {
         aObjectSelectLink.Call(*this);
         return true;
     }
-    return true;
+    return WeldEditView::KeyInput(rKEvt);
 }
 
 void ScEditWindow::GetFocus()


More information about the Libreoffice-commits mailing list