KeyComboEvent

Kind of class:public class
Package:org.casalib.events
Inherits from:Event
Dispatched by:
Version:10/27/08
Author:Aaron Clinger
Classpath:org.casalib.events.KeyComboEvent
File last modified:Wednesday, 31 December 2008, 20:18:28
An event dispatched in response to a user holding, releasing or typing a combination of keys.

Summary


Constructor
  • KeyComboEvent (type:String, bubbles:Boolean = false, cancelable:Boolean = false)
    • Creates a new KeyComboEvent.
Constants
Instance properties
  • keyCombo : KeyCombo
    • The KeyCombo that contains the key codes that triggered the event.
Instance methods

Constructor

KeyComboEvent

public function KeyComboEvent (
type:String, bubbles:Boolean = false, cancelable:Boolean = false)

Creates a new KeyComboEvent.
Parameters:
type :
The type of event.
bubbles :
Determines whether the Event object participates in the bubbling stage of the event flow.
cancelable:
Determines whether the Event object can be canceled.

Constants

DOWN

public static const DOWN:String = 'down'
(read)

RELEASE

public static const RELEASE:String = 'release'
(read)

SEQUENCE

public static const SEQUENCE:String = 'sequence'
(read)

Instance properties

keyCombo

public keyCombo:KeyCombo
(read,write)

The KeyCombo that contains the key codes that triggered the event.

Instance methods

clone

override public function clone (
) : Event

Returns:
  • Duplicates an instance of the event.
Overrides:
  • Event.clone

toString

override public function toString (
) : String

Returns:
  • A string containing all the properties of the event.
Overrides:
  • Event.toString