Prepare for key event delivery to a specific focus item

Begin by routing key events through the component. In the future that
will direct the event to the focus item.
This commit is contained in:
Simon Hausmann 2020-09-24 16:32:06 +02:00
parent 2b76e9277a
commit aa5babffe1
8 changed files with 82 additions and 15 deletions

View file

@ -133,9 +133,9 @@ pub mod re_exports {
PathArcTo, PathData, PathElement, PathEvent, PathLineTo, Point, Rect, Size,
};
pub use sixtyfps_corelib::input::{
process_ungrabbed_mouse_event, InputEventResult, KeyCode, KeyEvent, KeyEventResult,
KeyboardModifiers, MouseEvent, ALT_MODIFIER, CONTROL_MODIFIER, COPY_PASTE_MODIFIER,
LOGO_MODIFIER, NO_MODIFIER, SHIFT_MODIFIER,
process_key_event, process_ungrabbed_mouse_event, InputEventResult, KeyCode, KeyEvent,
KeyEventResult, KeyboardModifiers, MouseEvent, ALT_MODIFIER, CONTROL_MODIFIER,
COPY_PASTE_MODIFIER, LOGO_MODIFIER, NO_MODIFIER, SHIFT_MODIFIER,
};
pub use sixtyfps_corelib::item_tree::{
item_offset, visit_item_tree, ItemTreeNode, ItemVisitorRefMut, ItemVisitorVTable,