]> git.lyx.org Git - features.git/commit
Change backspace behavior in align type equations
authorEnrico Forestieri <forenr@lyx.org>
Sat, 30 Jan 2021 23:51:15 +0000 (00:51 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 30 Jan 2021 23:51:15 +0000 (00:51 +0100)
commitc79ec4114e419ae8f4711c4c07ab0df19dafaaa3
tree0d8d3ee25dda2e2fd292eb905193df96f4a457b8
parentd008ca2539158ab5ddcc9b5887d8517c300c42c1
Change backspace behavior in align type equations

When hitting backspace in the first position of a cell in mathed,
if the cell is part of an array, the whole array is dissolved
and the sole cell content pasted in the containing environment.

But if the cell is part of an eqnarray or align math hull type, the
cursor is simply (and unexpectedly) taken out of the whole equation,
which is left unchanged.

This patch makes backspace equivalent to the cursor left key in those
cases, while leaving the behavior unchanged in all other ones.

Fixes #11678
src/Cursor.cpp