KeyEvent

scalafx.scene.input.KeyEvent
See theKeyEvent companion object
class KeyEvent(val delegate: KeyEvent) extends InputEvent, SFXDelegate[KeyEvent]

Attributes

Companion
object
Graph
Supertypes
class InputEvent
class Event
trait SFXDelegate[KeyEvent]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Returns whether or not the Alt modifier is down on this event.

Returns whether or not the Alt modifier is down on this event.

Attributes

The unicode character associated with the key typed event.

The unicode character associated with the key typed event.

Attributes

def code: KeyCode

The key code associated with the key in this key pressed or key released event.

The key code associated with the key in this key pressed or key released event.

Attributes

Returns whether or not the Control modifier is down on this event.

Returns whether or not the Control modifier is down on this event.

Attributes

Returns whether or not the Meta modifier is down on this event.

Returns whether or not the Meta modifier is down on this event.

Attributes

Returns whether or not the Shift modifier is down on this event.

Returns whether or not the Shift modifier is down on this event.

Attributes

Returns whether or not the host platform common shortcut modifier is down on this event.

Returns whether or not the host platform common shortcut modifier is down on this event.

Attributes

def text: String

A String describing the key code, such as "HOME", "F1" or "A", for key pressed and key released events.

A String describing the key code, such as "HOME", "F1" or "A", for key pressed and key released events.

Attributes

Inherited methods

def consume(): Unit

Marks this Event as consumed. This stops its further propagation.

Marks this Event as consumed. This stops its further propagation.

Attributes

Inherited from:
Event

Indicates whether this Event has been consumed by any filter or handler.

Indicates whether this Event has been consumed by any filter or handler.

Attributes

Inherited from:
Event
def copyFor(newSource: AnyRef, newTarget: EventTarget): Event

Creates and returns a copy of this event with the specified event source and target.

Creates and returns a copy of this event with the specified event source and target.

Attributes

Inherited from:
Event
override def equals(ref: Any): Boolean

Verifies if a object is equals to this delegate.

Verifies if a object is equals to this delegate.

Value parameters

ref

Object to be compared.

Attributes

Returns

if the other object is equals to this delegate or not.

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
def eventType: EventType[_ <: Event]

Gets the event type of this event.

Gets the event type of this event.

Attributes

Inherited from:
Event
override def hashCode: Int

Attributes

Returns

The delegate hashcode

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
def source: Object

Returns the object on which the Event initially occurred.

Returns the object on which the Event initially occurred.

Attributes

Inherited from:
Event
def target: EventTarget

Returns the event target of this event.

Returns the event target of this event.

Attributes

Inherited from:
Event
override def toString: String

Attributes

Returns

Returns the original delegate's toString() adding a [SFX] prefix.

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate

Concrete fields

override val delegate: KeyEvent

JavaFX object to be wrapped.

JavaFX object to be wrapped.

Attributes