Reset the focus on the work area after using on any navigator gui control.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25008 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-05-30 12:13:42 +00:00
parent 9cbe8c06f6
commit 9558962c4f

View File

@ -108,6 +108,7 @@ void TocWidget::on_depthSL_valueChanged(int depth)
if (depth == depth_) if (depth == depth_)
return; return;
setTreeDepth(depth); setTreeDepth(depth);
gui_view_.setFocus();
} }
@ -147,6 +148,7 @@ void TocWidget::outline(int func_code)
goTo(list[0]); goTo(list[0]);
dispatch(FuncRequest(static_cast<FuncCode>(func_code))); dispatch(FuncRequest(static_cast<FuncCode>(func_code)));
enableControls(true); enableControls(true);
gui_view_.setFocus();
} }