]> git.lyx.org Git - features.git/commit
Kill macro mode when using LFUN_ESCAPE
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 20 Feb 2018 11:09:10 +0000 (12:09 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 21 Feb 2018 10:24:32 +0000 (11:24 +0100)
commit66fd21adcb340b059ef271278b8e30433cbe4d95
tree31567a215f1953635e0a8de3b80a442bf3fb0f62
parent77d10ca20ad370754b94a0f00b45879955efbd4f
Kill macro mode when using LFUN_ESCAPE

Add a `cancel' boolean to macroModeClose() that just removes all trace
of what has been entered instead of finalizing it.

When entering a macro in mathed, let LFUN_ESCAPE invoke
macroModeClose(true). The new semantics of LFUN_ESCAPE in mathed is
thus to abort the input of a macro name.

Fixes bug #9251.

(cherry picked from commit 9296344b9a26191a2092d175a51e357ecc35145d)
src/Cursor.cpp
src/Cursor.h
src/mathed/InsetMathNest.cpp
status.22x