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 {
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;
+ }
bool dispatched() const {
return dispatched_;
}