summaryrefslogtreecommitdiff
path: root/starmath/source/edit.cxx
diff options
context:
space:
mode:
authorThomas Lange [tl] <tl@openoffice.org>2010-07-29 13:51:02 +0200
committerThomas Lange [tl] <tl@openoffice.org>2010-07-29 13:51:02 +0200
commit705af29850ea12bd23783ec2a6937a2bb0c25f12 (patch)
tree5ee3453453f6411b7e42423c7e16fc277b266b50 /starmath/source/edit.cxx
parentcdce29a326c834a269b33dff27e74ed34c82c7df (diff)
cws tl83: #i113276# auto-update for right context menu and 'Elements' window fixed
Diffstat (limited to 'starmath/source/edit.cxx')
-rw-r--r--starmath/source/edit.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index fe849a36e358..020376c05dfb 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -251,10 +251,8 @@ IMPL_LINK( SmEditWindow, ModifyTimerHdl, Timer *, EMPTYARG /*pTimer*/ )
{
SmModule *pp = SM_MOD();
if (pp->GetConfig()->IsAutoRedraw())
- {
Flush();
- aModifyTimer.Stop();
- }
+ aModifyTimer.Stop();
return 0;
}
@@ -282,6 +280,7 @@ IMPL_LINK(SmEditWindow, CursorMoveTimerHdl, Timer *, EMPTYARG /*pTimer*/)
aOldSelection = aNewSelection;
}
}
+ aCursorMoveTimer.Stop();
return 0;
}
@@ -438,7 +437,7 @@ void SmEditWindow::KeyInput(const KeyEvent& rKEvt)
SmViewShell *pView = GetView();
if ( pView && !pView->KeyInput(rKEvt) )
{
- /* fuert bei F1 (Hilfe) zum Zerstoeren von this! */
+ /* fuert bei F1 (Hilfe) zum Zerstoeren von this! */
Flush();
if ( aModifyTimer.IsActive() )
aModifyTimer.Stop();
@@ -737,6 +736,9 @@ void SmEditWindow::InsertCommand(USHORT nCommand)
pEditView->SetSelection(aSelection);
}
+ aModifyTimer.Start();
+ aCursorMoveTimer.Start();
+
GrabFocus();
}
}
@@ -923,6 +925,7 @@ void SmEditWindow::InsertText(const String& Text)
{
pEditView->InsertText(Text);
aModifyTimer.Start();
+ aCursorMoveTimer.Start();
}
}