Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

KEYBOARD_TYPE_FR = "fr";

KEYBOARD_TYPE_SC = "sc";

The Keyboard mapping takes in parameters like : 
 

...


 

 RAW keyboard
    Primarily translates KeyDown/KeyUp event, either as is (if there is no mapping entry) or through mapped result.
For KeyPress event, it translates it only if there exist a mapping entry in jsX11KeysymMap map and the entry meets the condition 
 
COOKED keyboard
Primarily translates KeyPress event, either as is or through mapped result. It translates KeyDown/KeyUp only there exists a mapping entry, or if there is no mapping entry, translate when certain modifier key is pressed (i.e., CTRL or ALT key)

Mapping entry types
direct : will be directly mapped into the entry value with the same event type
boolean : only valid for jsX11KeysymMap, existence of this type, no matter true or false
in value, corresponding KeyDown/KeyUp event will be masked
array : contains a set of conditional mapping entry

Conditional mapping entry

{
type: <event type>, code: <mapped key code>, modifiers: <modifiers>,
shift : <shift state match condition>, -- match on shift state
guestos : <guest os match condition>, -- match on guestos type
browser: <browser type match condition>, -- match on browser
browserVersion: <brower version match condition> -- match on browser version
guestosDisplayName: <guest os display name condition> -- matches on specific version of guest os
provide the guest os display name substring to uniquely identify version
for example if guestosDisplayName CentOS 5.2 (32-bit), then to match this condition
give unique substring to identify like 5.2 or CentOS 5.2 etc.
hypervisor: <hypervisor match condition> --match on hypervisor
hypervisorVersion: <hypervisor version match condition> --match on hypervisor version
}

 

...