From b56388dde593f09c03addbe65093289c1b70d1e6 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 1 Mar 2024 20:20:20 +0100 Subject: qwe --- src/i_events.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/i_events.go') 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 = "" -- cgit v1.2.3