Skip to content
Snippets Groups Projects
Commit b71b358c authored by StarArawn's avatar StarArawn
Browse files

Removed dbg statements.

parent 151ac062
No related branches found
No related tags found
No related merge requests found
...@@ -340,12 +340,6 @@ impl KayakContext { ...@@ -340,12 +340,6 @@ impl KayakContext {
{ {
if widget.focusable() { if widget.focusable() {
was_focus_event = true; was_focus_event = true;
if let Some(widget) =
self.widget_manager.current_widgets.get(index).unwrap()
{
dbg!(index);
dbg!(widget.get_name());
}
let focus_event = Event { let focus_event = Event {
target: index, target: index,
event_type: EventType::Focus, event_type: EventType::Focus,
......
...@@ -80,14 +80,8 @@ pub fn TextBox(value: String, on_change: Option<OnChange>) { ...@@ -80,14 +80,8 @@ pub fn TextBox(value: String, on_change: Option<OnChange>) {
} }
internal_value.set(current_value); internal_value.set(current_value);
} }
EventType::Focus => { EventType::Focus => cloned_has_focus.set(Focus(true)),
dbg!("Has focus!"); EventType::Blur => cloned_has_focus.set(Focus(false)),
cloned_has_focus.set(Focus(true))
}
EventType::Blur => {
dbg!("Lost focus!");
cloned_has_focus.set(Focus(false))
}
_ => {} _ => {}
})); }));
......
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