Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 17.0 (home page)Version 16.0 (home page, current version)Version 15.0 (home page)Version 14.0 (home page)Version 13.0 (home page)Version 12.0 (home page)Version 11.0 (home page)Version 10.0 (home page)Version 2.0Version 1.0 (home page)

On this page

KKI

Summary

Returns an object with extended information about a specified keystroke event.

Syntax

KeymanWeb.KKI(e);

Parameters

e
Type: Object
The event object to be evaluated.

Return Value

Object
An object with extended key event information.

Description

Note: this function will not succeed if it is called from outside of a keyboard's standard text-processing operations.


The key_event object contains the following members:

vk
boolean
A flag indicating whether or not the event corresponds to a virtual key.
code
number
The underlying keycode for the event.
modifiers
number
A set of bit-flags corresponding to the SHIFT, CTRL, and ALT state of the keyboard.

The bit masks for each modifier are as follows:

  • SHIFT
    0x10
  • CTRL
    0x20
  • ALT
    0x40