]> git.lyx.org Git - features.git/commit
Generalise the deletion protection mechanism from math to text (#9540)
authorGuillaume Munch <gm@lyx.org>
Sat, 18 Feb 2017 18:12:55 +0000 (19:12 +0100)
committerGuillaume Munch <gm@lyx.org>
Sat, 18 Feb 2017 22:03:23 +0000 (23:03 +0100)
commit71623b88b2c613dd4ab826a9783a53e840bcd6e1
treebd9d48309ddad2406cc4407d6618b7669f641bf4
parentffacdd8b469071e34c27f93e6f5b95f7a960a694
Generalise the deletion protection mechanism from math to text (#9540)

Now backspace and delete in text will select non-empty math and text insets
before deleting them. This is consistent with what happens in math already.

This is implemented for InsetText as well but can be disabled in case of
negative feedback.

This can be set for any sort of inset with the new virtual method
Inset::confirmDeletion.

New option "force" for the LFUN_*_DELETE_* commands, that bypasses the
confirmDeletion check.
13 files changed:
src/Cursor.cpp
src/Cursor.h
src/DocIterator.cpp
src/DocIterator.h
src/LyXAction.cpp
src/Text.cpp
src/Text.h
src/Text3.cpp
src/insets/Inset.h
src/insets/InsetText.h
src/mathed/InsetMathHull.h
src/mathed/InsetMathNest.cpp
src/mathed/InsetMathNest.h