Skip to content
Snippets Groups Projects
Commit 7484dd4c authored by MrGVSV's avatar MrGVSV
Browse files

Updated old focus code in EventDispatcher logic

parent ef0ff43a
No related branches found
No related tags found
No related merge requests found
......@@ -293,8 +293,8 @@ impl EventDispatcher {
if layout.contains(&self.current_mouse_position) {
event_stream.push(Event::new(node, EventType::MouseDown));
if let Some(widget) = widget_manager.current_widgets.get(node).unwrap() {
if widget.focusable().unwrap_or_default() {
if let Some(focusable) = widget_manager.get_focusable(node) {
if focusable {
Self::update_state(states, (node, depth), layout, EventType::Focus);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment