Add little tool to print keyevents for creating new shortcuts
DELETE
demo/keyevents/main.go
-package main
-
-import (
- "fmt"
-
- "github.com/Bios-Marcel/tview"
- "github.com/gdamore/tcell"
-)
-
-func main() {
- input := tview.NewTextView()
- input.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey {
- fmt.Fprintln(input, event.Key(), event.Modifiers(), event.Rune())
-
- return event
- })
- tview.NewApplication().SetRoot(input, true).Run()
-}

Add little tool to print keyevents for creating new shortcuts