mirror of
https://github.com/rclone/rclone.git
synced 2025-02-08 14:39:44 +01:00
ncdu: Do not quit on Esc
This commit is contained in:
parent
2cff5514aa
commit
79c00879ff
@ -114,7 +114,8 @@ func helpText() (tr []string) {
|
|||||||
" ^L refresh screen (fix screen corruption)",
|
" ^L refresh screen (fix screen corruption)",
|
||||||
" r recalculate file sizes",
|
" r recalculate file sizes",
|
||||||
" ? to toggle help on and off",
|
" ? to toggle help on and off",
|
||||||
" q/ESC/^c to quit",
|
" ESC to close the menu box",
|
||||||
|
" q/^c to quit",
|
||||||
}...)
|
}...)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -990,7 +991,7 @@ outer:
|
|||||||
}
|
}
|
||||||
switch c {
|
switch c {
|
||||||
case key(tcell.KeyEsc), key(tcell.KeyCtrlC), 'q':
|
case key(tcell.KeyEsc), key(tcell.KeyCtrlC), 'q':
|
||||||
if u.showBox {
|
if u.showBox || c == key(tcell.KeyEsc) {
|
||||||
u.showBox = false
|
u.showBox = false
|
||||||
} else {
|
} else {
|
||||||
break outer
|
break outer
|
||||||
|
Loading…
Reference in New Issue
Block a user