Fix return value of Lua key hooks not being used

This commit is contained in:
James R 2021-06-29 01:49:53 -07:00
parent 90763d42e1
commit 7d01bd38d8

View file

@ -594,7 +594,7 @@ int LUA_HookKey(INT32 keycode, int hook_type)
if (prepare_hook(&hook, false, hook_type))
{
lua_pushinteger(gL, keycode);
call_hooks(&hook, 1, 0, res_true);
call_hooks(&hook, 1, 1, res_true);
}
return hook.status;
}