diff options
author | Joe <rbo@gmx.us> | 2024-04-18 20:20:20 +0200 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-04-18 20:20:20 +0200 |
commit | e7d590fc38c580fb33c8d3a6dc7c888c98c064ec (patch) | |
tree | a63a999268fb2fe856001b7d42e0a0cef961a162 /src/i_events.go | |
parent | cool for now (diff) | |
download | hardflip-e7d590fc38c580fb33c8d3a6dc7c888c98c064ec.tar.gz hardflip-e7d590fc38c580fb33c8d3a6dc7c888c98c064ec.tar.bz2 hardflip-e7d590fc38c580fb33c8d3a6dc7c888c98c064ec.tar.xz hardflip-e7d590fc38c580fb33c8d3a6dc7c888c98c064ec.tar.zst hardflip-e7d590fc38c580fb33c8d3a6dc7c888c98c064ec.zip |
add
Diffstat (limited to '')
-rw-r--r-- | src/i_events.go | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/src/i_events.go b/src/i_events.go index b3fa6d5..41cee0f 100644 --- a/src/i_events.go +++ b/src/i_events.go @@ -629,7 +629,8 @@ func i_events(data *HardData) { switch data.ui.insert_sel { case INS_SSH_OK, INS_RDP_OK + len(data.insert.Drive), - INS_CMD_OK: + INS_CMD_OK, + INS_OS_OK: data.ui.insert_sel_ok = false i_insert_check_ok(data, data.insert) if data.insert_err != nil { @@ -698,9 +699,16 @@ func i_events(data *HardData) { ui.buff = data.insert.Stack.Interface case INS_OS_IDAPI: ui.buff = data.insert.Stack.IdentityAPI + case INS_OS_IMGAPI: + ui.buff = data.insert.Stack.ImageAPI + case INS_OS_NETAPI: + ui.buff = data.insert.Stack.NetworkAPI + case INS_OS_VOLAPI: + ui.buff = data.insert.Stack.VolumeAPI case INS_SSH_NOTE, INS_RDP_NOTE + len(data.insert.Drive), - INS_CMD_NOTE: + INS_CMD_NOTE, + INS_OS_NOTE: ui.buff = data.insert.Note } } @@ -846,7 +854,11 @@ func i_events(data *HardData) { INS_OS_REGION, INS_OS_ENDTYPE, INS_OS_INTERFACE, - INS_OS_IDAPI: + INS_OS_IDAPI, + INS_OS_IMGAPI, + INS_OS_NETAPI, + INS_OS_VOLAPI, + INS_OS_NOTE: if event.Key() == tcell.KeyEnter { switch data.ui.insert_sel { case INS_SSH_HOST, @@ -904,9 +916,16 @@ func i_events(data *HardData) { data.insert.Stack.Interface = ui.buff case INS_OS_IDAPI: data.insert.Stack.IdentityAPI = ui.buff + case INS_OS_IMGAPI: + data.insert.Stack.ImageAPI = ui.buff + case INS_OS_NETAPI: + data.insert.Stack.NetworkAPI = ui.buff + case INS_OS_VOLAPI: + data.insert.Stack.VolumeAPI = ui.buff case INS_SSH_NOTE, INS_RDP_NOTE + len(data.insert.Drive), - INS_CMD_NOTE: + INS_CMD_NOTE, + INS_OS_NOTE: data.insert.Note = ui.buff } data.ui.insert_sel_ok = false |