diff options
author | Joe <rbo@gmx.us> | 2024-03-01 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-03-01 20:20:20 +0100 |
commit | b56388dde593f09c03addbe65093289c1b70d1e6 (patch) | |
tree | 14931b9eb6cfd0a3e5317c04527a86915519e4ae /src/i_events.go | |
parent | commit (diff) | |
download | hardflip-b56388dde593f09c03addbe65093289c1b70d1e6.tar.gz hardflip-b56388dde593f09c03addbe65093289c1b70d1e6.tar.bz2 hardflip-b56388dde593f09c03addbe65093289c1b70d1e6.tar.xz hardflip-b56388dde593f09c03addbe65093289c1b70d1e6.tar.zst hardflip-b56388dde593f09c03addbe65093289c1b70d1e6.zip |
qwe
Diffstat (limited to 'src/i_events.go')
-rw-r--r-- | src/i_events.go | 6 |
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 = "" |