- // first, try if there's an inset at cursor
- // FIXME: this first part should be moved to
- // a LFUN_NEXT_INSET_DISSOLVE, or be called via
- // some generic "next-inset inset-dissolve"
- Inset * inset = cur.nextInset();
- if (inset && inset->isActive()) {
- Cursor tmpcur = cur;
- tmpcur.pushBackward(*inset);
- inset->dispatch(tmpcur, cmd);
- if (tmpcur.result().dispatched()) {
- cur.dispatched();
- break;
- }
- }
- // if it did not work, try the underlying inset
- if (dissolveInset(cur)) {