mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
Merge pull request #132 from xiechengsheng/fix-120
add support for alternative navigation
This commit is contained in:
commit
9eb2457aa4
8
grid.go
8
grid.go
@ -104,6 +104,14 @@ func Display() bool {
|
|||||||
menu = ContainerMenu
|
menu = ContainerMenu
|
||||||
ui.StopLoop()
|
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) {
|
ui.Handle("/sys/kbd/l", func(ui.Event) {
|
||||||
menu = LogMenu
|
menu = LogMenu
|
||||||
ui.StopLoop()
|
ui.StopLoop()
|
||||||
|
Loading…
Reference in New Issue
Block a user