1
0
Fork 0
forked from Mirrors/gomuks

Add quit keybind to roster view

This commit is contained in:
FIGBERT 2023-03-06 17:37:26 -08:00
parent a5ac5ec86e
commit f6b722f523
No known key found for this signature in database
GPG key ID: 67F1598D607A844B
2 changed files with 3 additions and 0 deletions

View file

@ -21,6 +21,7 @@ roster:
'Down': next_room 'Down': next_room
'Up': prev_room 'Up': prev_room
'Escape': clear 'Escape': clear
'q': quit
modal: modal:
'Tab': select_next 'Tab': select_next

View file

@ -198,6 +198,8 @@ func (rstr *RosterView) OnKeyEvent(event mauview.KeyEvent) bool {
} }
case "clear": case "clear":
rstr.selected = nil rstr.selected = nil
case "quit":
rstr.parent.gmx.Stop(true)
default: default:
return false return false
} }