package pocket

import "github.com/gdamore/tcell"

func (widget *Widget) initializeKeyboardControls() {

	widget.InitializeCommonControls(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")
}
