specialkey(
specialkey(
KEYNAME
)

The specialkey( function returns the unicode value for special keys on the keyboard.

Parameters

This function has one parameter:

keyname – name of desired special key.

Description

This function returns the unicode value for the specified special key on the keyboard. This can be useful for specifying a command-key equivalent for these keys in the menuitem( function.

    menuitem("Down Periscope","KEY","SHIFT-"+specialkey("downarrow"))

The available keys are:

    uparrow
    downarrow
    leftarrow
    rightarrow
    f1
    f2
    f3
    f4
    f5
    f6
    f7
    f8
    f9
    f10
    f11
    f12
    home
    pageup
    pagedown

Note: The Apple definitions for these values are in NSEvent.h.

See Also

- menuitem( -- creates a single menu item (see Custom Menus).

History

Version | Status | Notes
10.0 | New | Carried over from Panorama 6.0