aboutsummaryrefslogtreecommitdiffstats
path: root/src/e_keys.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-05-10 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-05-10 20:20:20 +0200
commit93ae2134804faed36c2fbe1be8ff02fe1aec95e4 (patch)
treef2748f06b3ac37ba282017ab2ed939695fe20af4 /src/e_keys.go
parentgo (diff)
downloadhardflip-93ae2134804faed36c2fbe1be8ff02fe1aec95e4.tar.gz
hardflip-93ae2134804faed36c2fbe1be8ff02fe1aec95e4.tar.bz2
hardflip-93ae2134804faed36c2fbe1be8ff02fe1aec95e4.tar.xz
hardflip-93ae2134804faed36c2fbe1be8ff02fe1aec95e4.tar.zst
hardflip-93ae2134804faed36c2fbe1be8ff02fe1aec95e4.zip
gogo
Diffstat (limited to 'src/e_keys.go')
-rw-r--r--src/e_keys.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/e_keys.go b/src/e_keys.go
index 9f82ccc..af19547 100644
--- a/src/e_keys.go
+++ b/src/e_keys.go
@@ -401,7 +401,6 @@ func e_insert_events(data *HardData, ui *HardUI, event tcell.EventKey) bool {
}
if ui.insert_butt == false {
ui.insert_scroll += 2
- // TODO: gogo
}
} else if event.Rune() == 'k' ||
event.Key() == tcell.KeyUp {
@@ -842,14 +841,21 @@ func e_help_events(data *HardData, ui *HardUI, event tcell.EventKey) bool {
return true
} else if event.Rune() == 'j' ||
event.Key() == tcell.KeyDown {
+ if ui.help_end == true {
+ return true
+ }
ui.help_scroll += 1
} else if event.Rune() == 'k' ||
event.Key() == tcell.KeyUp {
- if ui.help_scroll >= 0 {
+ if ui.help_scroll <= 0 {
ui.help_scroll = 0
return true
}
ui.help_scroll -= 1
+ } else if event.Rune() == 'g' {
+ ui.help_scroll = 0
+ } else if event.Rune() == 'G' {
+ // TODO: here
}
return false
}