aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-04-25 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-04-25 20:20:20 +0200
commit240d13145cfbd6a19edc8d39fc9497d5ec0982c9 (patch)
tree0b1c0f820541af84118a4d7807627d8452b3e962
parentqwe (diff)
downloadhardflip-240d13145cfbd6a19edc8d39fc9497d5ec0982c9.tar.gz
hardflip-240d13145cfbd6a19edc8d39fc9497d5ec0982c9.tar.bz2
hardflip-240d13145cfbd6a19edc8d39fc9497d5ec0982c9.tar.xz
hardflip-240d13145cfbd6a19edc8d39fc9497d5ec0982c9.tar.zst
hardflip-240d13145cfbd6a19edc8d39fc9497d5ec0982c9.zip
go
-rw-r--r--src/e_keys.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/e_keys.go b/src/e_keys.go
index b418bbc..17e8189 100644
--- a/src/e_keys.go
+++ b/src/e_keys.go
@@ -43,7 +43,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*
* hardflip: src/e_keys.go
- * Thu Apr 25 11:42:12 2024
+ * Thu Apr 25 15:31:49 2024
* Joe
*
* events in the keys
@@ -181,10 +181,12 @@ func e_normal_events(data *HardData, ui *HardUI, event tcell.EventKey) bool {
tmp := e_deep_copy_host(data.litems.curr.Host)
data.insert = &tmp
e_set_protocol_max(data, data.insert)
- e_set_drive_keys(data)
+ if data.insert.Protocol == PROTOCOL_RDP && data.insert.Drive != nil {
+ e_set_drive_keys(data)
+ }
ui.mode = INSERT_MODE
ui.insert_method = INSERT_EDIT
- ui.insert_sel = 0
+ ui.insert_sel = INS_PROTOCOL
ui.insert_sel_ok = false
} else if event.Key() == tcell.KeyCtrlR {
e_reload_data(data)