Trigger window events
This commit is contained in:
parent
c51e65b657
commit
f6c0b1dd87
1 changed files with 5 additions and 0 deletions
|
@ -101,6 +101,11 @@ private
|
|||
|
||||
def handle(char)
|
||||
case char
|
||||
when Curses::Key::SLEFT
|
||||
@messenger.trigger Events::Window::Left.new
|
||||
when Curses::Key::SRIGHT
|
||||
@messenger.trigger Events::Window::Right.new
|
||||
|
||||
when Curses::Key::UP
|
||||
@messenger.trigger Events::Panel::Up.new
|
||||
when Curses::Key::DOWN
|
||||
|
|
Reference in a new issue