mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-27 20:42:25 +00:00
C++ two way bindings
This commit is contained in:
parent
cc3ac5fbed
commit
abe24e2e9e
5 changed files with 149 additions and 46 deletions
|
@ -201,9 +201,8 @@ inline KeyEventResult process_key_event(ComponentRef component, int64_t focus_it
|
|||
return comp.vtable->key_event(comp, event, window);
|
||||
};
|
||||
}
|
||||
} else {
|
||||
return KeyEventResult::EventIgnored;
|
||||
}
|
||||
return KeyEventResult::EventIgnored;
|
||||
}
|
||||
|
||||
template<typename GetDynamic>
|
||||
|
@ -247,6 +246,7 @@ inline FocusEventResult process_focus_event(ComponentRef component, int64_t &foc
|
|||
return FocusEventResult::FocusItemNotFound;
|
||||
}
|
||||
}
|
||||
return FocusEventResult::FocusItemNotFound;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue