[Libreoffice-commits] .: sc/source

Noel Power noelp at kemper.freedesktop.org
Wed Dec 14 04:49:23 PST 2011


 sc/source/ui/app/inputwin.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit aa6a3683070ac4d6f3cb4daea3cb08534fde2537
Author: Noel Power <noel.power at novell.com>
Date:   Wed Dec 14 12:49:28 2011 +0000

    if editing in formulabar restore focus to inputline after expand/collapse

diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index b9ab412..2588cae 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -1061,6 +1061,9 @@ IMPL_LINK( ScInputBarGroup, ClickHdl, PushButton*, EMPTYARG )
         aMultiTextWnd.SetNumLines( aMultiTextWnd.GetLastNumExpandedLines() );
     }
     TriggerToolboxLayout();
+    // Restore focus to input line(s) if necessary
+    if (  SC_MOD()->GetInputHdl()->IsTopMode() )
+        aMultiTextWnd.GrabFocus();
     return 0;
 }
 


More information about the Libreoffice-commits mailing list