]> 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)
committerRichard Heck <rgheck@lyx.org>
Sat, 17 Mar 2018 19:44:05 +0000 (15:44 -0400)
commitf599e90d92a872e2eaa60b97a3754fcb9e887eff
tree04abe80c96c6d65d997099b4b21060a0fa8923bc
parent148a053fbc27f24de33795f278d7e6e35f543ecb
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.23x