forked from glacambre/firenvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
killEditor: don't focus input if editor isn't focused
This change required vast changes in multiple parts of Firenvim. First, in FirenvimElement.focus(): there was an issue where, due to setTimeout callbacks, the firenvim frame could get refocused when its focus was released after a focus() call. This is fixed by saving timeout ids and event listeners and clearing them when releasing focus. FirenvimElement.pressKeys() and FirenvimElement.setPageElementCursor() now check focus status before messing with focus. src/nvimproc/Neovim.ts now remembers whether focus was relinquinsed by focus_page between the beginning of a firenvim_bufwrite event and its end.
- Loading branch information
Showing
4 changed files
with
77 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters