Archived
1
0
Fork 0

Reorder code

This commit is contained in:
Braiden Vasco 2017-07-21 17:16:43 +00:00
parent 88ae22d3e5
commit c51e65b657

View file

@ -101,6 +101,11 @@ private
def handle(char) def handle(char)
case char case char
when Curses::Key::UP
@messenger.trigger Events::Panel::Up.new
when Curses::Key::DOWN
@messenger.trigger Events::Panel::Down.new
when /[a-zA-Z0-9 ]/ when /[a-zA-Z0-9 ]/
@messenger.trigger Events::Text::Putc.new char @messenger.trigger Events::Text::Putc.new char
when Curses::Key::LEFT when Curses::Key::LEFT
@ -115,10 +120,6 @@ private
@messenger.trigger Events::Text::Backspace.new @messenger.trigger Events::Text::Backspace.new
when Curses::Key::DC when Curses::Key::DC
@messenger.trigger Events::Text::Delete.new @messenger.trigger Events::Text::Delete.new
when Curses::Key::UP
@messenger.trigger Events::Panel::Up.new
when Curses::Key::DOWN
@messenger.trigger Events::Panel::Down.new
end end
end end
end end