Add SetVisualAction

This commit is contained in:
aditya-K2
2023-04-29 03:34:17 +05:30
parent a5dafc778e
commit 8f5e6cf0cd

View File

@@ -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 {