tQuit TOKEN prompt when pressing Escape - scoreboard - Interactive scoreboard for CTF-like games
 (HTM) git clone git://git.z3bra.org/scoreboard.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) commit b4e128c73fa57ae574761f732be6d380650bbed3
 (DIR) parent 2657289b937a2c40d111f3692e72e8496d287afa
 (HTM) Author: Willy Goiffon <contact@z3bra.org>
       Date:   Sat, 28 Sep 2024 00:25:08 +0200
       
       Quit TOKEN prompt when pressing Escape
       
       Diffstat:
         M ui.go                               |       4 ++++
       
       1 file changed, 4 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/ui.go b/ui.go
       t@@ -235,6 +235,10 @@ func (a *Application) Token(callback func()) tview.Primitive {
                        return matched
                })
                input.SetDoneFunc(func(key tcell.Key) {
       +                        if key == tcell.KeyEscape {
       +                                a.pages.RemovePage("token");
       +                                return
       +                        }
                                if key != tcell.KeyEnter {
                                        return
                                }