aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/view-main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/view-main.go b/ui/view-main.go
index 40a6dcd..ef0f5d7 100644
--- a/ui/view-main.go
+++ b/ui/view-main.go
@@ -195,6 +195,10 @@ func (view *MainView) KeyEventHandler(roomView *RoomView, key *tcell.EventKey) *
default:
return key
}
+ } else if k == tcell.KeyAltDown || k == tcell.KeyCtrlDown {
+ view.SwitchRoom(view.roomList.Next())
+ } else if k == tcell.KeyAltUp || k == tcell.KeyCtrlUp {
+ view.SwitchRoom(view.roomList.Previous())
} else if k == tcell.KeyPgUp || k == tcell.KeyPgDn || k == tcell.KeyUp || k == tcell.KeyDown || k == tcell.KeyEnd || k == tcell.KeyHome {
msgView := roomView.MessageView()