Archived
1
0
Fork 0

Use base classes to match events

This commit is contained in:
Braiden Vasco 2017-07-21 17:07:43 +00:00
parent 3417500900
commit 9c3ab90268

View file

@ -14,15 +14,9 @@ module Widgets
def trigger(event)
case event
when Events::Panel::Up, Events::Panel::Down
when Events::Panel::Base
@list.trigger event
when Events::Text::Putc,
Events::Text::Left,
Events::Text::Right,
Events::Text::Home,
Events::Text::End,
Events::Text::Backspace,
Events::Text::Delete
when Events::Text::Base
@search.trigger event
end
end