mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 02:08:17 +00:00
eventloop: FocusGained: schedule event instead of pseudokey
closes #4840 closes #6164
This commit is contained in:
@@ -345,8 +345,6 @@ static const struct nv_cmd {
|
||||
{ K_F8, farsi_f8, 0, 0 },
|
||||
{ K_F9, farsi_f9, 0, 0 },
|
||||
{ K_EVENT, nv_event, NV_KEEPREG, 0 },
|
||||
{ K_FOCUSGAINED, nv_focusgained, NV_KEEPREG, 0 },
|
||||
{ K_FOCUSLOST, nv_focuslost, NV_KEEPREG, 0 },
|
||||
};
|
||||
|
||||
/* Number of commands in nv_cmds[]. */
|
||||
@@ -7961,18 +7959,6 @@ static void nv_event(cmdarg_T *cap)
|
||||
finish_op = false;
|
||||
}
|
||||
|
||||
/// Trigger FocusGained event.
|
||||
static void nv_focusgained(cmdarg_T *cap)
|
||||
{
|
||||
apply_autocmds(EVENT_FOCUSGAINED, NULL, NULL, false, curbuf);
|
||||
}
|
||||
|
||||
/// Trigger FocusLost event.
|
||||
static void nv_focuslost(cmdarg_T *cap)
|
||||
{
|
||||
apply_autocmds(EVENT_FOCUSLOST, NULL, NULL, false, curbuf);
|
||||
}
|
||||
|
||||
/*
|
||||
* Return TRUE when 'mousemodel' is set to "popup" or "popup_setpos".
|
||||
*/
|
||||
|
Reference in New Issue
Block a user