aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_events.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-03-29 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-03-29 20:20:20 +0100
commit1a5cf23f40951aad1e0fd753536b2dc42f393425 (patch)
tree4feafdc93aca3d1d4915da5c267c9dbf83fe1af0 /src/i_events.go
parentoooooo (diff)
downloadhardflip-1a5cf23f40951aad1e0fd753536b2dc42f393425.tar.gz
hardflip-1a5cf23f40951aad1e0fd753536b2dc42f393425.tar.bz2
hardflip-1a5cf23f40951aad1e0fd753536b2dc42f393425.tar.xz
hardflip-1a5cf23f40951aad1e0fd753536b2dc42f393425.tar.zst
hardflip-1a5cf23f40951aad1e0fd753536b2dc42f393425.zip
fuck its hard
Diffstat (limited to 'src/i_events.go')
-rw-r--r--src/i_events.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/i_events.go b/src/i_events.go
index 1bdb370..cc7c4be 100644
--- a/src/i_events.go
+++ b/src/i_events.go
@@ -575,6 +575,14 @@ func i_events(data *HardData) {
if data.ui.insert_sel > 0 {
data.ui.insert_sel -= 1
}
+ } else if event.Rune() == 'g' ||
+ event.Rune() == 'h' ||
+ event.Key() == tcell.KeyLeft {
+ data.ui.insert_sel = 0
+ } else if event.Rune() == 'G' ||
+ event.Rune() == 'l' ||
+ event.Key() == tcell.KeyRight {
+ data.ui.insert_sel = data.ui.insert_sel_max
} else if event.Key() == tcell.KeyEnter {
data.ui.insert_sel_ok = true
switch data.ui.insert_sel {