mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 22:49:20 +00:00
Honour preferences by allowing inline completion in mathed on "Ctrl-L".
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30507 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
fa1ee437e5
commit
14be173d42
@ -1708,7 +1708,8 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
|
|||||||
// processKeySym to avoid another redraw just for a
|
// processKeySym to avoid another redraw just for a
|
||||||
// changed inline completion
|
// changed inline completion
|
||||||
if (cmd.origin == FuncRequest::KEYBOARD) {
|
if (cmd.origin == FuncRequest::KEYBOARD) {
|
||||||
if (cmd.action == LFUN_SELF_INSERT)
|
if (cmd.action == LFUN_SELF_INSERT
|
||||||
|
|| (cmd.action == LFUN_ERT_INSERT && view()->cursor().inMathed()))
|
||||||
lyx_view_->updateCompletion(view()->cursor(), true, true);
|
lyx_view_->updateCompletion(view()->cursor(), true, true);
|
||||||
else if (cmd.action == LFUN_CHAR_DELETE_BACKWARD)
|
else if (cmd.action == LFUN_CHAR_DELETE_BACKWARD)
|
||||||
lyx_view_->updateCompletion(view()->cursor(), false, true);
|
lyx_view_->updateCompletion(view()->cursor(), false, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user