decorative banner

KeyCompare


    The KeyCompare action launches an action when the viewer presses a selected key. This action is designed for use with the Idle action, which must reside in the head section of the page as a browser-triggered event. You can use the KeyCompare action, for example, to simulate Windows-style access keys for objects on your page.

    To set up a KeyCompare action, trigger the action with a browser-triggered action set to OnLoad. Choose Action > Specials > Idle. In the Condition tab of the Action Inspector, choose Action > Specials > KeyCompare. Enter the ASCII character code that corresponds to the desired keystroke in the CharCode text box. In the True tab, choose the action you want the keystroke to trigger. Return to the page and add a visual hint for the viewer--for example, an instruction such as "Press K".

    Important: Do not specify an action in the False tab. If an action is specified in the False tab, it will be triggered before the user has a chance to press a key to trigger the True condition.