aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_events.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-04-16 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-04-16 20:20:20 +0200
commit0c4765df2be66e9a4ce191a267545d559483ecf7 (patch)
tree9e476957b3dfda38fb7873ad6502daecdb5538d1 /src/i_events.go
parentgogo (diff)
downloadhardflip-0c4765df2be66e9a4ce191a267545d559483ecf7.tar.gz
hardflip-0c4765df2be66e9a4ce191a267545d559483ecf7.tar.bz2
hardflip-0c4765df2be66e9a4ce191a267545d559483ecf7.tar.xz
hardflip-0c4765df2be66e9a4ce191a267545d559483ecf7.tar.zst
hardflip-0c4765df2be66e9a4ce191a267545d559483ecf7.zip
lookin good
Diffstat (limited to '')
-rw-r--r--src/i_events.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/i_events.go b/src/i_events.go
index de59296..b0d0fda 100644
--- a/src/i_events.go
+++ b/src/i_events.go
@@ -642,6 +642,9 @@ func i_events(data *HardData) {
break
case INS_RDP_QUALITY: break
case INS_RDP_DRIVE + len(data.insert.Drive): break
+ case INS_SSH_NOTE,
+ INS_RDP_NOTE + len(data.insert.Drive):
+ ui.buff = data.insert.Note
case INS_SSH_OK,
INS_RDP_OK + len(data.insert.Drive):
data.ui.insert_sel_ok = false
@@ -775,12 +778,14 @@ func i_events(data *HardData) {
INS_SSH_JUMP_USER,
INS_SSH_JUMP_PASS,
INS_SSH_JUMP_PRIV,
+ INS_SSH_NOTE,
INS_RDP_HOST,
INS_RDP_PORT,
INS_RDP_DOMAIN,
INS_RDP_USER,
INS_RDP_PASS,
- INS_RDP_FILE:
+ INS_RDP_FILE,
+ INS_RDP_NOTE + len(data.insert.Drive):
if event.Key() == tcell.KeyEnter {
switch data.ui.insert_sel {
case INS_SSH_HOST,
@@ -819,6 +824,9 @@ func i_events(data *HardData) {
data.insert.Domain = ui.buff
case INS_RDP_FILE:
data.insert.RDPFile = ui.buff
+ case INS_SSH_NOTE,
+ INS_RDP_NOTE + len(data.insert.Drive):
+ data.insert.Note = ui.buff
}
data.ui.insert_sel_ok = false
ui.buff = ""