diff --git a/ui/view_default.go b/ui/view_default.go index b8bcc92..4d68aee 100644 --- a/ui/view_default.go +++ b/ui/view_default.go @@ -28,6 +28,10 @@ func (d *defView) SetActions(a map[string]*Action) { d.actions = a } +func (d *defView) SetVisualActions(a map[string]func(start, end int, e *tcell.EventKey) *tcell.EventKey) { + d.visualActions = a +} + func (d *defView) ExternalInputCapture() func(e *tcell.EventKey) *tcell.EventKey { return func(e *tcell.EventKey) *tcell.EventKey { if d.m != nil {