Skip to content

Commit

Permalink
Merge pull request #1214 from CBATeam/keybinding-assignment-safe-return
Browse files Browse the repository at this point in the history
handle returned assignments in key events
  • Loading branch information
commy2 authored Aug 23, 2019
2 parents 1ccbafa + 664a56c commit 75e6bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/events/fnc_keyHandlerDown.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private _blockInput = false;
_params pushBack + _keybindParams;
_params pushBack _x;

_blockInput = ([_params call _code] param [0, false] isEqualTo true) || {_blockInput};
_blockInput = ([nil] apply {_params call _code} param [0, false] isEqualTo true) || {_blockInput};
};
};
} forEach (GVAR(keyDownStates) param [_inputKey, []]);
Expand Down

0 comments on commit 75e6bfb

Please sign in to comment.