aboutsummaryrefslogtreecommitdiffstats
path: root/src/e_keys.go
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-08-28 13:41:56 +0200
committerjoe <rbo@gmx.us>2025-08-28 13:41:56 +0200
commitf170a2eb3ba93409472f901c1874c95f4f5f378e (patch)
tree7eb89698b9f7c75449814d364b0ae398cf06c53c /src/e_keys.go
parentok (diff)
downloadhardflip-f170a2eb3ba93409472f901c1874c95f4f5f378e.tar.gz
hardflip-f170a2eb3ba93409472f901c1874c95f4f5f378e.tar.bz2
hardflip-f170a2eb3ba93409472f901c1874c95f4f5f378e.tar.xz
hardflip-f170a2eb3ba93409472f901c1874c95f4f5f378e.tar.zst
hardflip-f170a2eb3ba93409472f901c1874c95f4f5f378e.zip
ye
Diffstat (limited to '')
-rw-r--r--src/e_keys.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/e_keys.go b/src/e_keys.go
index 40e8bde..1e598b5 100644
--- a/src/e_keys.go
+++ b/src/e_keys.go
@@ -187,7 +187,12 @@ func e_normal_events(data *HardData, ui *HardUI, event tcell.EventKey) bool {
ui.insert_sel_ok = false
ui.insert_scroll = 0
} else if event.Key() == tcell.KeyCtrlR {
+ if err := ui.s.Suspend(); err != nil {
+ c_error_mode("screen", err, ui)
+ return true
+ }
e_reload_data(data)
+ c_resume_or_die(ui)
} else if event.Rune() == 'm' ||
event.Key() == tcell.KeyF7 {
ui.mode = MKDIR_MODE
@@ -275,10 +280,6 @@ func e_delete_events(data *HardData, ui *HardUI, event tcell.EventKey) bool {
return false
}
-func e_load_events(data *HardData, ui *HardUI, event tcell.EventKey) bool {
- return true
-}
-
func e_error_events(data *HardData, ui *HardUI, event tcell.EventKey) bool {
if event.Rune() != 0 ||
event.Key() == tcell.KeyEscape ||