summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Power <noel.power@novell.com>2011-12-14 12:49:28 +0000
committerNoel Power <noel.power@novell.com>2011-12-14 12:50:30 +0000
commitaa6a3683070ac4d6f3cb4daea3cb08534fde2537 (patch)
tree3dcfc15bb63ea34f2ac47c0aead2e782830f04ae
parent165fe63a544b2afb82bd8d576d2e5ef556255462 (diff)
if editing in formulabar restore focus to inputline after expand/collapse
-rw-r--r--sc/source/ui/app/inputwin.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index b9ab4127b6cf..2588caedc68c 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;
}