diff --git starmath/source/view.cxx starmath/source/view.cxx index f00036f..a4e56ab 100644 --- starmath/source/view.cxx +++ starmath/source/view.cxx @@ -211,6 +211,7 @@ void SmGraphicWindow::MouseButtonDown(const MouseEvent& rMEvt) pEdit->GrabFocus(); } } + GrabFocus(); //So that we can get KeyInput } void SmGraphicWindow::GetFocus() @@ -345,6 +346,8 @@ void SmGraphicWindow::KeyInput(const KeyEvent& rKEvt) { if (! (GetView() && GetView()->KeyInput(rKEvt)) ) ScrollableWindow::KeyInput(rKEvt); + Invalidate(); //to simulate the required repaint at each caret movement or repaint + //that occurs when a character is entered and the formula changes. }