aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_events.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-03-01 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-03-01 20:20:20 +0100
commitb56388dde593f09c03addbe65093289c1b70d1e6 (patch)
tree14931b9eb6cfd0a3e5317c04527a86915519e4ae /src/i_events.go
parentcommit (diff)
downloadhardflip-b56388dde593f09c03addbe65093289c1b70d1e6.tar.gz
hardflip-b56388dde593f09c03addbe65093289c1b70d1e6.tar.bz2
hardflip-b56388dde593f09c03addbe65093289c1b70d1e6.tar.xz
hardflip-b56388dde593f09c03addbe65093289c1b70d1e6.tar.zst
hardflip-b56388dde593f09c03addbe65093289c1b70d1e6.zip
qwe
Diffstat (limited to '')
-rw-r--r--src/i_events.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/i_events.go b/src/i_events.go
index 6143f8c..6582ac6 100644
--- a/src/i_events.go
+++ b/src/i_events.go
@@ -321,7 +321,7 @@ func i_set_protocol_defaults(data *HardData, in *HostNode) {
switch in.Protocol {
case 0:
in.Port = 22
- data.ui.insert_sel_max = 5
+ data.ui.insert_sel_max = 6
case 1:
in.Port = 3389
in.Quality = 2
@@ -602,7 +602,7 @@ func i_events(data *HardData) {
ui.s.HideCursor()
i_set_protocol_defaults(data, data.insert)
}
- case 1, 2, 3, 4:
+ case 1, 2, 3, 4, 5, 6:
if event.Key() == tcell.KeyEnter {
if data.ui.insert_sel == 1 {
data.insert.Host = ui.buff
@@ -617,6 +617,8 @@ func i_events(data *HardData) {
data.insert.Pass = pass
} else if data.ui.insert_sel == 5 {
data.insert.Priv = ui.buff
+ } else if data.ui.insert_sel == 6 {
+ data.insert.Jump.Host = ui.buff
}
data.ui.insert_sel_ok = false
ui.buff = ""