An event that triggers when the specified key is pressed, and can be listened to through data-binding.

Example

<Panel>
    <JavaScript>
        module.exports = {
            menuButtonClicked: function() { debug_log("menu button clicked"); }
        }
    </JavaScript>
    <OnKeyPress Key="BackButton" Handler="{menuButtonClicked}" />
</Panel>

Location

Namespace
Fuse.Triggers
Package
Fuse.Triggers 1.11.2

Returns

KeyPressHandler (object, KeyEventArgs)