BlzTriggerRegisterPlayerKeyEvent

Parameters
whichTrigger trigger
whichPlayer player
key oskeytype
metaKey integer

Bitfield. MetaKeys are "none"(0), "shift"(1), "control"(2), "alt"(4) and "META"(8) (windows key). They can be combined 2 + 4 = 6. The player needs to holds this metakeys to trigger the event. Inside the OnPress of a Metakey like OSKEY_LSHIFT the shift bit is set.

keyDown boolean

(true) OnPress. In V1.31.1 This happens once, In V1.32.10 repeats until released (false) OnRelease

patch

1.31

return type
event
Source code
native BlzTriggerRegisterPlayerKeyEvent            takes trigger whichTrigger, player whichPlayer, oskeytype key, integer metaKey, boolean keyDown returns event
Source
ui.j
wc3modding.com
BlzTriggerRegisterPlayerKeyEvent