]> git.lyx.org Git - lyx.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>
Tue, 20 Feb 2018 12:49:17 +0000 (13:49 +0100)
commit9296344b9a26191a2092d175a51e357ecc35145d
tree445d5953603756cebd2a742aa2f74a84ae5cc4d8
parented7cdfff269a9f05f12f2b693a04ae05e360bb2b
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.
src/Cursor.cpp
src/Cursor.h
src/mathed/InsetMathNest.cpp