File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -540,7 +540,10 @@ func (h *BufPane) Bindings() *KeyTree {
540540}
541541
542542// DoKeyEvent executes a key event by finding the action it is bound
543- // to and executing it (possibly multiple times for multiple cursors)
543+ // to and executing it (possibly multiple times for multiple cursors).
544+ // Returns true if the action was executed OR if there are more keys
545+ // remaining to process before executing an action (if this is a key
546+ // sequence event). Returns false if no action found.
544547func (h * BufPane ) DoKeyEvent (e Event ) bool {
545548 binds := h .Bindings ()
546549 action , more := binds .NextEvent (e , nil )
Original file line number Diff line number Diff line change @@ -124,7 +124,10 @@ func (h *InfoPane) HandleEvent(event tcell.Event) {
124124 }
125125}
126126
127- // DoKeyEvent executes a key event for the command bar, doing any overridden actions
127+ // DoKeyEvent executes a key event for the command bar, doing any overridden actions.
128+ // Returns true if the action was executed OR if there are more keys remaining
129+ // to process before executing an action (if this is a key sequence event).
130+ // Returns false if no action found.
128131func (h * InfoPane ) DoKeyEvent (e KeyEvent ) bool {
129132 action , more := InfoBindings .NextEvent (e , nil )
130133 if action != nil && ! more {
You can’t perform that action at this time.
0 commit comments