diff options
author | Joe <rbo@gmx.us> | 2024-01-23 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-23 20:20:20 +0100 |
commit | 559281aa9c0a649925587f65e420c530733b5a24 (patch) | |
tree | 2119267078dcea7883d299ec5c6182101595bfac /src/i_events.go | |
parent | better org (diff) | |
download | hardflip-559281aa9c0a649925587f65e420c530733b5a24.tar.gz hardflip-559281aa9c0a649925587f65e420c530733b5a24.tar.bz2 hardflip-559281aa9c0a649925587f65e420c530733b5a24.tar.xz hardflip-559281aa9c0a649925587f65e420c530733b5a24.tar.zst hardflip-559281aa9c0a649925587f65e420c530733b5a24.zip |
alright
Diffstat (limited to 'src/i_events.go')
-rw-r--r-- | src/i_events.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/i_events.go b/src/i_events.go index 526b4a4..4e3baae 100644 --- a/src/i_events.go +++ b/src/i_events.go @@ -305,7 +305,7 @@ func i_events(data *HardData) { if err := ui.s.Init(); err != nil { c_die("view", err) } - ui.s.SetStyle(ui.def_style) + ui.s.SetStyle(ui.style[DEF_STYLE]) } } else if data.litems.curr.Dirs != nil && data.folds[data.litems.curr.Dirs] == nil { @@ -341,7 +341,8 @@ func i_events(data *HardData) { } } case ERROR_MODE: - if event.Key() == tcell.KeyEnter { + if event.Rune() == 'q' || + event.Key() == tcell.KeyEnter { ui.mode = NORMAL_MODE } } |