diff options
author | Joe <rbo@gmx.us> | 2024-05-10 20:20:20 +0200 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-05-10 20:20:20 +0200 |
commit | 954dbb54bd41e964bb328cdb381d47ff2d468771 (patch) | |
tree | 0aa2a30c1f51ec9c3483c02bb6a1dc77e6b4ae24 /src/e_keys.go | |
parent | better (diff) | |
download | hardflip-954dbb54bd41e964bb328cdb381d47ff2d468771.tar.gz hardflip-954dbb54bd41e964bb328cdb381d47ff2d468771.tar.bz2 hardflip-954dbb54bd41e964bb328cdb381d47ff2d468771.tar.xz hardflip-954dbb54bd41e964bb328cdb381d47ff2d468771.tar.zst hardflip-954dbb54bd41e964bb328cdb381d47ff2d468771.zip |
go
Diffstat (limited to 'src/e_keys.go')
-rw-r--r-- | src/e_keys.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/e_keys.go b/src/e_keys.go index c95dad4..16d6bf6 100644 --- a/src/e_keys.go +++ b/src/e_keys.go @@ -248,6 +248,7 @@ func e_normal_events(data *HardData, ui *HardUI, event tcell.EventKey) bool { ui.buff = data.litems.curr.Host.Name } else if event.Rune() == '?' { ui.mode = HELP_MODE + ui.help_scroll = 0 } return false } @@ -833,5 +834,12 @@ func e_rename_events(data *HardData, ui *HardUI, event tcell.EventKey) bool { } func e_help_events(data *HardData, ui *HardUI, event tcell.EventKey) bool { + if event.Key() == tcell.KeyEscape || + event.Key() == tcell.KeyCtrlC || + event.Rune() == 'q' { + ui.mode = NORMAL_MODE + ui.help_scroll = 0 + return true + } return false } |