- case LFUN_INSET_EDIT: {
- FuncRequest fr(cmd);
- // if there is an inset at cursor, see whether it
- // can be modified.
- Inset * inset = cur.nextInset();
- if (inset)
- inset->dispatch(cur, fr);
- // if it did not work, try the underlying inset.
- if (!inset || !cur.result().dispatched())
- cur.dispatch(cmd);
-
- // FIXME I'm adding the last break to solve a crash,
- // but that is obviously not right.
- if (!cur.result().dispatched())
- // It did not work too; no action needed.
- break;
- break;
- }
-