mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Revert "Don't allow newline characters in the command buffer."
This reverts commit r39809. Some LFUNs require newline characters, and while at the moment we don't have a proper interface for such LFUNs, copy-pasting newlines has been a long-time workaround. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39893 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7bc0f381d9
commit
6c96473ac8
@ -18,7 +18,6 @@
|
|||||||
#include "GuiCommandEdit.h"
|
#include "GuiCommandEdit.h"
|
||||||
#include "GuiView.h"
|
#include "GuiView.h"
|
||||||
#include "qt_helpers.h"
|
#include "qt_helpers.h"
|
||||||
#include "Validator.h"
|
|
||||||
|
|
||||||
#include "BufferView.h"
|
#include "BufferView.h"
|
||||||
#include "Cursor.h"
|
#include "Cursor.h"
|
||||||
@ -108,7 +107,6 @@ GuiCommandBuffer::GuiCommandBuffer(GuiView * view)
|
|||||||
edit_ = new GuiCommandEdit(this);
|
edit_ = new GuiCommandEdit(this);
|
||||||
edit_->setMinimumSize(edit_->sizeHint());
|
edit_->setMinimumSize(edit_->sizeHint());
|
||||||
edit_->setFocusPolicy(Qt::ClickFocus);
|
edit_->setFocusPolicy(Qt::ClickFocus);
|
||||||
edit_->setValidator(new NoNewLineValidator(edit_));
|
|
||||||
|
|
||||||
connect(edit_, SIGNAL(escapePressed()), this, SLOT(cancel()));
|
connect(edit_, SIGNAL(escapePressed()), this, SLOT(cancel()));
|
||||||
connect(edit_, SIGNAL(returnPressed()), this, SLOT(dispatch()));
|
connect(edit_, SIGNAL(returnPressed()), this, SLOT(dispatch()));
|
||||||
|
Loading…
Reference in New Issue
Block a user