eventloop: FocusGained: schedule event instead of pseudokey

closes #4840
closes #6164
This commit is contained in:
Justin M. Keyes
2017-08-28 01:27:57 +02:00
parent ce852bab04
commit b6b6e4a96f
10 changed files with 66 additions and 54 deletions

View File

@@ -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;