Skip to content
Snippets Groups Projects
Commit 7d01bd38 authored by James R.'s avatar James R.
Browse files

Fix return value of Lua key hooks not being used

parent 90763d42
Branches
Tags
1 merge request!1559Use return value of KeyDown and KeyUp hooks
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment