]> git.lyx.org Git - lyx.git/blobdiff - src/DocIterator.cpp
Accelerators
[lyx.git] / src / DocIterator.cpp
index 0f4bc10fac73a0e1fda35d8f4dcc9e044bfd2a9f..6eba5a792e2d472d786feda2bf769e82b8dacb37 100644 (file)
@@ -500,6 +500,18 @@ void DocIterator::backwardPos()
 }
 
 
+void DocIterator::backwardPosIgnoreCollapsed()
+{
+       backwardPos();
+       if (inTexted()) {
+               Inset const * ins = realInset();
+               if (ins && !ins->editable()) {
+                       pop_back(); // move out of collapsed inset
+               }
+       }
+}
+
+
 #if 0
 // works, but currently not needed
 void DocIterator::backwardInset()