mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 08:25:32 +00:00
Note: build.sh updated to make sure that test:help build action:target doesn't also call test.sh by adding `:_all` meta-target. Note: CI will need a new help-keyman-com.sh build step to deploy web engine help. Fixes: #12347
978 B
978 B
| title |
|---|
| keyInformation (KKI) |
Summary
Returns an object with extended information about a specified keystroke event.
Syntax
keyman.interface.keyInformation(e);
or
KeymanWeb.KKI(e); // Shorthand
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:
vkboolean- A flag indicating whether or not the event corresponds to a virtual key.
codenumber- The underlying keycode for the event.
modifiersnumber- 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