]> git.lyx.org Git - lyx.git/blobdiff - src/dispatchresult.h
more cursor dispatch
[lyx.git] / src / dispatchresult.h
index 0cad88a85a89b56a36749d88f02f7af758d0d16d..70760b33d0b1f045b7915e93d990c38323922f43 100644 (file)
@@ -25,7 +25,9 @@
                        the inset.
        FINISHED_DOWN       = FINISHED, but move the cursor DOWN from
                        the inset.
-       UNDISPATCHED        = the action was not catched, it should be
+       FINISHED_POP       = FINISHED, but move the cursor out the inset
+                       (possibly more than one level)
+       UNDISPATCHED        = the action was not caught, it should be
                        dispatched by lower level insets
 */
 enum dispatch_result_t {
@@ -49,9 +51,9 @@ public:
        DispatchResult(bool dis)
                : dispatched_(dis), update_(false), val_(NONE) {}
        DispatchResult(bool dis, bool update)
-               : dispatched_(dis), update_(true), val_(NONE) {}
+               : dispatched_(dis), update_(update), val_(NONE) {}
        DispatchResult(bool dis, dispatch_result_t val)
-               : dispatched_(dis), update_(false), val_(val) {}
+               : dispatched_(dis), update_(true), val_(val) {}
        dispatch_result_t val() const { return val_; }
        void val(dispatch_result_t drt) {
                val_ = drt;