diff --git a/internal/action/bufpane.go b/internal/action/bufpane.go index ecc14f6a..084ccd62 100644 --- a/internal/action/bufpane.go +++ b/internal/action/bufpane.go @@ -540,7 +540,10 @@ func (h *BufPane) Bindings() *KeyTree { } // DoKeyEvent executes a key event by finding the action it is bound -// to and executing it (possibly multiple times for multiple cursors) +// to and executing it (possibly multiple times for multiple cursors). +// Returns true if the action was executed OR if there are more keys +// remaining to process before executing an action (if this is a key +// sequence event). Returns false if no action found. func (h *BufPane) DoKeyEvent(e Event) bool { binds := h.Bindings() action, more := binds.NextEvent(e, nil) diff --git a/internal/action/infopane.go b/internal/action/infopane.go index c46faaf4..32afb8d8 100644 --- a/internal/action/infopane.go +++ b/internal/action/infopane.go @@ -124,7 +124,10 @@ func (h *InfoPane) HandleEvent(event tcell.Event) { } } -// DoKeyEvent executes a key event for the command bar, doing any overridden actions +// DoKeyEvent executes a key event for the command bar, doing any overridden actions. +// Returns true if the action was executed OR if there are more keys remaining +// to process before executing an action (if this is a key sequence event). +// Returns false if no action found. func (h *InfoPane) DoKeyEvent(e KeyEvent) bool { action, more := InfoBindings.NextEvent(e, nil) if action != nil && !more {