The execution order bv -> doc_bv -> buffer -> doc_buffer was artificial and not important AFAIU.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36734
a592a061-630c-0410-9148-
cb99ea01b6c8
}
default:
- dispatched = false;
+ // OK, so try the Buffer itself...
+ buffer_.dispatch(cmd, dr);
+ dispatched = dr.dispatched();
break;
}
buffer_.undo().endUndoGroup();
dr.dispatched(dispatched);
- return;
}
return;
}
- // OK, so try the current Buffer itself...
- bv->buffer().dispatch(cmd, dr);
- if (dr.dispatched())
- return;
-
- // and with the document Buffer.
- if (doc_bv) {
- doc_bv->buffer().dispatch(cmd, dr);
- if (dr.dispatched())
- return;
- }
-
// Then let the current Cursor dispatch its own actions.
bv->cursor().dispatch(cmd);