mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 18:43:41 -05:00
Add quit keybind to roster view
This commit is contained in:
parent
a5ac5ec86e
commit
f6b722f523
2 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,7 @@ roster:
|
|||
'Down': next_room
|
||||
'Up': prev_room
|
||||
'Escape': clear
|
||||
'q': quit
|
||||
|
||||
modal:
|
||||
'Tab': select_next
|
||||
|
|
|
@ -198,6 +198,8 @@ func (rstr *RosterView) OnKeyEvent(event mauview.KeyEvent) bool {
|
|||
}
|
||||
case "clear":
|
||||
rstr.selected = nil
|
||||
case "quit":
|
||||
rstr.parent.gmx.Stop(true)
|
||||
default:
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue