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

@@ -1620,14 +1620,6 @@ static int command_line_handle_key(CommandLineState *s)
}
return command_line_not_changed(s);
case K_FOCUSGAINED: // Neovim has been given focus
apply_autocmds(EVENT_FOCUSGAINED, NULL, NULL, false, curbuf);
return command_line_not_changed(s);
case K_FOCUSLOST: // Neovim has lost focus
apply_autocmds(EVENT_FOCUSLOST, NULL, NULL, false, curbuf);
return command_line_not_changed(s);
default:
// Normal character with no special meaning. Just set mod_mask
// to 0x0 so that typing Shift-Space in the GUI doesn't enter