3.24  key-event%

Superclass: event%

A key-event% object contains information about a key press or release event. Key events are primarily processed by on-subwindow-char in window<%> and on-char in canvas<%>.

For a key-press event, a virtual key code is provided by get-key-code. For a key-release event, get-key-code reports 'release, and a virtual key code is provided by get-key-release-code.

See also Mouse and Keyboard Events.

Methods
    get-alt-down
    get-control-down
    get-key-code
    get-key-release-code
    get-meta-down
    get-shift-down
    get-x
    get-y
    set-alt-down
    set-control-down
    set-key-code
    set-key-release-code
    set-meta-down
    set-shift-down
    set-x
    set-y

All Methods
    get-alt-down from key-event%
    get-control-down from key-event%
    get-key-code from key-event%
    get-key-release-code from key-event%
    get-meta-down from key-event%
    get-shift-down from key-event%
    get-time-stamp from event%
    get-x from key-event%
    get-y from key-event%
    set-alt-down from key-event%
    set-control-down from key-event%
    set-key-code from key-event%
    set-key-release-code from key-event%
    set-meta-down from key-event%
    set-shift-down from key-event%
    set-time-stamp from event%
    set-x from key-event%
    set-y from key-event%