mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
fix focus problem with minibuffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24964 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
af442b7369
commit
7e127a496b
@ -18,6 +18,7 @@
|
||||
#include "Dialog.h"
|
||||
#include "FileDialog.h"
|
||||
#include "GuiApplication.h"
|
||||
#include "GuiCommandBuffer.h"
|
||||
#include "GuiCompleter.h"
|
||||
#include "GuiWorkArea.h"
|
||||
#include "GuiKeySymbol.h"
|
||||
@ -1757,8 +1758,11 @@ bool GuiView::dispatch(FuncRequest const & cmd)
|
||||
bool const show_it = cmd.argument() != "off";
|
||||
// FIXME: this is a hack, "minibuffer" should not be
|
||||
// hardcoded.
|
||||
if (GuiToolbar * t = toolbar("minibuffer"))
|
||||
if (GuiToolbar * t = toolbar("minibuffer")) {
|
||||
t->setVisible(show_it);
|
||||
LASSERT(t->commandBuffer(), break);
|
||||
t->commandBuffer()->setFocus();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case LFUN_DROP_LAYOUTS_CHOICE:
|
||||
|
Loading…
Reference in New Issue
Block a user