mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
add support for alternative navigation
Signed-off-by: xiechengsheng <XIE1995@whut.edu.cn>
This commit is contained in:
parent
a2c08d312e
commit
078564bd38
8
grid.go
8
grid.go
@ -104,6 +104,14 @@ func Display() bool {
|
||||
menu = ContainerMenu
|
||||
ui.StopLoop()
|
||||
})
|
||||
ui.Handle("/sys/kbd/<left>", func(ui.Event) {
|
||||
menu = LogMenu
|
||||
ui.StopLoop()
|
||||
})
|
||||
ui.Handle("/sys/kbd/<right>", func(ui.Event) {
|
||||
menu = SingleView
|
||||
ui.StopLoop()
|
||||
})
|
||||
ui.Handle("/sys/kbd/l", func(ui.Event) {
|
||||
menu = LogMenu
|
||||
ui.StopLoop()
|
||||
|
Loading…
Reference in New Issue
Block a user