Figma Support Forum

Get keycode from Trigger({type: "ON_KEY_DOWN"})?

Hi I’m trying to build a filter for frame nodes that requires knowing what reactions are triggered by a FrameNode and what key an ON_KEY_DOWN trigger event is associated with.

Looking in the Reaction and Trigger classes I can’t find where that information is held. ON_KEY_DOWN isn’t even documented is the API docs but I discovered it by checking the figma.currentpage object in the plugin I’m developing.

Any help for where the keycode associated with an ON_KEY_DOWN reaction is located would be very helpful.

Thank you!