Classes
AddedRemovedEvent
AlertElement
AnchorContainerElement
ArrowShape
ButtonElement
CanvasElement
CanvasManager
CheckboxElement
CheckboxSkinElement
CollectionChangedEvent
CollectionSort
ColorPickerButtonElement
ColorPickerElement
ContainerBaseElement
CursorDefinition
DataGridColumnDefinition
DataGridDataRenderer
DataGridElement
DataGridHeaderColumnDividerSkinElement
DataGridHeaderElement
DataGridHeaderItemRenderer
DataGridItemData
DataGridItemRendererBase
DataGridLabelItemRenderer
DataListData
DataListElement
DataRendererBaseElement
DataRendererLabelElement
DatePickerButtonElement
DatePickerElement
DispatcherEvent
DrawMetrics
DropdownArrowButtonSkinElement
DropdownBaseElement
DropdownElement
ElementEvent
ElementGridItemClickEvent
ElementKeyboardEvent
ElementListItemClickEvent
ElementMouseEvent
ElementMouseWheelEvent
EllipseShape
EventDispatcher
FillBase
GridContainerElement
GridContainerRowColumnDefinition
ImageElement
IpInputElement
LabelElement
LinearGradientFill
ListCollection
ListContainerElement
ProgressElement
RadioButtonElement
RadioButtonSkinElement
RoundedRectangleShape
ScrollBarElement
ScrollButtonSkinElement
ShapeBase
SkinnableElement
SolidFill
StyleableBase
StyleChangedEvent
StyleData
StyleDefinition
StyleProxy
TextAreaElement
TextElement
TextFieldElement
TextInputElement
TimeInputElement
ToggleButtonElement
ToggleButtonGroup
Tween
ViewportElement


ElementKeyboardEvent

Event class used to represent keyboard events of type "keydown" or "keyup".
Note that unlike mouse events, every "keydown" is not necessarily paired with a "keyup".
When a key is held down, "keydown" events will repeatedly be dispatched until the key
is released which will then dispatch a "keyup" event.

Inheritance:     ElementKeyboardEvent ➞ ElementEventDispatcherEvent ➞ Object

Public Functions
Show Inherited
Function Defined By
ElementKeyboardEvent(type, key, keyCode, ctrl, alt, shift, meta) [Constructor] ElementKeyboardEvent
Creates new ElementKeyboardEvent instance.
  type     :    String
String representing the event type ("keydown" or "keyup")
  key     :    String
Printable representation of the key. If the key is not printable such as
Shift or Return this should be an emtpy string "".
  keyCode     :    int
The keycode of the key that caused the event.
  ctrl     :    boolean
True if the ctrl key is pressed, false otherwise.
  alt     :    boolean
True if the alt key is pressed, false otherwise.
  shift     :    boolean
True if the shift key is pressed, false otherwise.
  meta     :    boolean
True if the meta key (such as windows key) is pressed, false otherwise.
 
getAlt() ElementKeyboardEvent
Gets the state of the alt key.
  returns     :    boolean
True if the alt key is pressed, otherwise false.
 
getCtrl() ElementKeyboardEvent
Gets the state of the ctrl key.
  returns     :    boolean
True if the ctrl key is pressed, otherwise false.
 
getKey() ElementKeyboardEvent
Gets the printable version of the key which caused the event.
  returns     :    String
The printable version of the key which caused the event. Empty string "" if the
key is not printable.
 
getKeyCode() ElementKeyboardEvent
Gets the key code of the key which caused the event.
  returns     :    int
The keycode of the key which caused the event.
 
getMeta() ElementKeyboardEvent
Gets the state of the meta key (such as the windows key).
  returns     :    boolean
True if the meta key is pressed, otherwise false.
 
getShift() ElementKeyboardEvent
Gets the state of the shift key.
  returns     :    boolean
True if the shift key is pressed, otherwise false.
 


Internal Functions
Show Inherited