Projects‎ > ‎

XForms - Keyboard shortcuts

Note: This page describes implementation details for feature implemented in Orbeon Forms.
If you would like to use this feature, see: Creating keyboard shortcuts.

Implementation

The opsXFormsControls variable is renamed to orbeonInitData, as it now contains initialization data that is not just specific to controls. It takes the form:

{
    "controls":{"select1":{...}},
    "keylisteners": [
        {
            "observer": "my-group",
            "modifiers": "Control",
            "text": "y"
        }
    ]
}

When the key is pressed, the client sends the following event to the server:

<xxforms:event-request xmlns:xxforms="http://orbeon.org/oxf/xml/xforms">
    <xxforms:static-state>...</xxforms:static-state>
    <xxforms:dynamic-state>...</xxforms:dynamic-state>
    <xxforms:action>
        <xxforms:event name="keypress" source-control-id="my-group" modifiers="Control" text="y"/>
    </xxforms:action>
</xxforms:event-request>"}


Comments