From: Sergey Matveev Date: Tue, 16 Apr 2024 13:14:30 +0000 (+0300) Subject: "q" to quit X-Git-Tag: v2.2.0~1 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=50baa91973b8a243ff394921bb704c863a34dc14feaa4a962986cbde6c4dd63b;p=vors.git "q" to quit --- diff --git a/cmd/client/main.go b/cmd/client/main.go index 681209f..511c2c0 100644 --- a/cmd/client/main.go +++ b/cmd/client/main.go @@ -295,7 +295,7 @@ func main() { GUI.SelFgColor = gocui.ColorCyan GUI.Highlight = true GUI.SetManagerFunc(guiLayout) - if err := GUI.SetKeybinding("", gocui.KeyF10, gocui.ModNone, guiQuit); err != nil { + if err := GUI.SetKeybinding("", 'q', gocui.ModNone, guiQuit); err != nil { log.Fatal(err) } if err := GUI.SetKeybinding("", gocui.KeyEnter, gocui.ModNone, mute); err != nil { diff --git a/cmd/server/main.go b/cmd/server/main.go index 4b06974..51dd019 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -354,7 +354,7 @@ func main() { } defer GUI.Close() GUI.SetManagerFunc(guiLayout) - if err := GUI.SetKeybinding("", gocui.KeyF10, gocui.ModNone, guiQuit); err != nil { + if err := GUI.SetKeybinding("", 'q', gocui.ModNone, guiQuit); err != nil { log.Fatal(err) } diff --git a/doc/usage.texi b/doc/usage.texi index c4c12c1..e44817a 100644 --- a/doc/usage.texi +++ b/doc/usage.texi @@ -32,8 +32,8 @@ $ vors-server -key key -bind [2001:db8::1]:12978 $ vors-client -srv "[2001:db8::1]:12978" -pub $pub -name NAME @end example - Pressing F10 in server/client TUIs means quitting. Pressing Enter in - client means "mute" toggling. + Pressing "q" in server/client TUIs means quitting. + Pressing Enter in client means "mute" toggling. @item @option{-room} allows you to join non-root room.