From 7d6ee1572e0b79f2ec91e2a831249ea59fed11e4 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 20 Feb 2008 15:11:47 +0000 Subject: [PATCH] LFUN_UI_TOGGLE: make sure the keyboard focus stays in the work area. Should fix the focus problems under MacOS. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23078 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 3b8b329745..989f4d92a9 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -1811,6 +1811,8 @@ bool GuiView::dispatch(FuncRequest const & cmd) case LFUN_UI_TOGGLE: lfunUiToggle(cmd); + // Make sure the keyboard focus stays in the work area. + setFocus(); break; default: