Reorder code
This commit is contained in:
parent
88ae22d3e5
commit
c51e65b657
1 changed files with 5 additions and 4 deletions
|
@ -101,6 +101,11 @@ private
|
|||
|
||||
def handle(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 ]/
|
||||
@messenger.trigger Events::Text::Putc.new char
|
||||
when Curses::Key::LEFT
|
||||
|
@ -115,10 +120,6 @@ private
|
|||
@messenger.trigger Events::Text::Backspace.new
|
||||
when Curses::Key::DC
|
||||
@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
|
||||
|
|
Reference in a new issue