diff options
Diffstat (limited to '')
-rw-r--r-- | src/i_events.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/i_events.go b/src/i_events.go index de92428..35f7a4c 100644 --- a/src/i_events.go +++ b/src/i_events.go @@ -621,6 +621,7 @@ func i_events(data *HardData) { case INS_SSH_JUMP_PRIV: ui.buff = data.insert.Jump.Priv case INS_RDP_DOMAIN: ui.buff = data.insert.Domain case INS_RDP_FILE: ui.buff = data.insert.RDPFile + case INS_RDP_QUALITY: break case INS_SSH_OK, INS_RDP_OK: data.ui.insert_sel_ok = false @@ -672,7 +673,8 @@ func i_events(data *HardData) { INS_RDP_DOMAIN, INS_RDP_USER, INS_RDP_PASS, - INS_RDP_FILE: + INS_RDP_FILE, + INS_RDP_QUALITY: if event.Key() == tcell.KeyEnter { switch data.ui.insert_sel { case INS_SSH_HOST, @@ -711,6 +713,9 @@ func i_events(data *HardData) { data.insert.Domain = ui.buff case INS_RDP_FILE: data.insert.RDPFile = ui.buff + case INS_RDP_QUALITY: + tmp, _ := strconv.Atoi(ui.buff) + data.insert.Quality = uint8(tmp) } data.ui.insert_sel_ok = false ui.buff = "" |