Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consume editor events when changing focus
When changing the focused view with C-w for example, the w event was being handled in the EditorView event handler as if it belonged to the newly focused window. Instead of handling the event for the newly focused window, we should return early. We don't want the change in focus to trigger a history checkpoint (following block) and we don't want to execute the mode transition hooks (the block after). With some configs this can cause a panic, for example keys.normal.w = ["no_op"] # or keys.normal.C-w.m = "rotate_view" since these fall into the `unimplemented!` in the mode transition block.
- Loading branch information