Package | cc.cote.feathers.softkeyboard |
Class | public class SoftKeyboardEvent |
Inheritance | SoftKeyboardEvent ![]() |
SoftKeyboardEvent
object is dispatched in response to a user pressing or
releasing one of the keys on a SoftKeyboard
object. Please note that this
object inherits properties and methods from starling.events.event
. You will have
to look up Starling's API
documentation for those inherited elements.
See also
Property | Defined By | ||
---|---|---|---|
char : String [read-only]
The actual printable character associated to the key that triggered the event. | SoftKeyboardEvent | ||
charCode : uint [read-only]
The code of the character associated to the key that triggered the event. | SoftKeyboardEvent |
Method | Defined By | ||
---|---|---|---|
SoftKeyboardEvent(type:String, charCode:uint, char:String = null)
Creates a new SoftKeyboardEvent object. | SoftKeyboardEvent | ||
toString():String [override]
Returns a textual description of the event (useful in debugging situations). | SoftKeyboardEvent |
Constant | Defined By | ||
---|---|---|---|
DONE : String = done [static]
The DONE constant defines the value of the type property of
a done event object. | SoftKeyboardEvent | ||
KEY_DOWN : String = keyDown [static]
The KEY_DOWN constant defines the value of the type property of
a keyDown event object. | SoftKeyboardEvent | ||
KEY_UP : String = keyUp [static]
The KEY_UP constant defines the value of the type property of a
keyUp event object. | SoftKeyboardEvent |
char | property |
char:String
[read-only]
The actual printable character associated to the key that triggered the event. The value
for non-printable characters will be null
.
public function get char():String
charCode | property |
charCode:uint
[read-only]
The code of the character associated to the key that triggered the event. Many basic
characters have constants defined for them in the CharCode
class. For others,
use Unicode as a base reference.
public function get charCode():uint
See also
SoftKeyboardEvent | () | Constructor |
public function SoftKeyboardEvent(type:String, charCode:uint, char:String = null)
Creates a new SoftKeyboardEvent
object.
type:String — Type of the event
| |
charCode:uint — The code of the character associated to the key that triggered the event.
| |
char:String (default = null ) — The actual printable character associated to the key that triggered the event.
|
toString | () | method |
override public function toString():String
Returns a textual description of the event (useful in debugging situations).
ReturnsString |
DONE | Constant |
public static const DONE:String = done
The DONE
constant defines the value of the type
property of
a done
event object.
KEY_DOWN | Constant |
public static const KEY_DOWN:String = keyDown
The KEY_DOWN
constant defines the value of the type
property of
a keyDown
event object.
KEY_UP | Constant |
public static const KEY_UP:String = keyUp
The KEY_UP
constant defines the value of the type
property of a
keyUp
event object.