mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
14 lines
542 B
Go
14 lines
542 B
Go
package pocket
|
|
|
|
import "github.com/gdamore/tcell"
|
|
|
|
func (widget *Widget) initializeKeyboardControls() {
|
|
widget.InitializeRefreshKeyboardControl(widget.Refresh)
|
|
|
|
widget.SetKeyboardChar("a", widget.toggleLink, "Toggle Link")
|
|
widget.SetKeyboardChar("t", widget.toggleView, "Toggle view (links ,archived links)")
|
|
widget.SetKeyboardKey(tcell.KeyDown, widget.Next, "Select Next Link")
|
|
widget.SetKeyboardKey(tcell.KeyUp, widget.Prev, "Select Previous Link")
|
|
widget.SetKeyboardKey(tcell.KeyEnter, widget.openLink, "Open Link in the browser")
|
|
}
|