mirror of
https://github.com/neovim/neovim.git
synced 2025-12-24 07:09:05 +00:00
eventloop: FocusGained: schedule event instead of pseudokey
closes #4840 closes #6164
This commit is contained in:
@@ -432,14 +432,6 @@ static int terminal_execute(VimState *state, int key)
|
||||
TerminalState *s = (TerminalState *)state;
|
||||
|
||||
switch (key) {
|
||||
case K_FOCUSGAINED: // nvim has been given focus
|
||||
apply_autocmds(EVENT_FOCUSGAINED, NULL, NULL, false, curbuf);
|
||||
break;
|
||||
|
||||
case K_FOCUSLOST: // nvim has lost focus
|
||||
apply_autocmds(EVENT_FOCUSLOST, NULL, NULL, false, curbuf);
|
||||
break;
|
||||
|
||||
// Temporary fix until paste events gets implemented
|
||||
case K_PASTE:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user