Class

io.scalajs.dom.event

KeyboardEvent

Related Doc: package event

Permalink

class KeyboardEvent extends Object with Event with KeyboardEvents

Keyboard Event Object

Annotations
@RawJSType() @native()
Linear Supertypes
KeyboardEvents, Event, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KeyboardEvent
  2. KeyboardEvents
  3. Event
  4. Object
  5. Any
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new KeyboardEvent()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val AT_TARGET: Int

    Permalink

    The current event is in the target phase, i.e.

    The current event is in the target phase, i.e. it is being evaluated at the event target (2)

    Definition Classes
    Event
  5. val BUBBLING_PHASE: Int

    Permalink

    The current event phase is the bubbling phase (3)

    The current event phase is the bubbling phase (3)

    Definition Classes
    Event
  6. val CAPTURING_PHASE: Int

    Permalink

    The current event phase is the capture phase (1)

    The current event phase is the capture phase (1)

    Definition Classes
    Event
  7. def altKey: Int

    Permalink

    Returns whether the "ALT" key was pressed when the key event was triggered

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def bubbles: Boolean

    Permalink

    Returns whether or not a specific event is a bubbling event

    Returns whether or not a specific event is a bubbling event

    Definition Classes
    Event
  10. def cancelable: Boolean

    Permalink

    Returns whether or not an event can have its default action prevented

    Returns whether or not an event can have its default action prevented

    Definition Classes
    Event
  11. def charCode: Int

    Permalink

    Returns the Unicode character code of the key that triggered the onkeypress event

  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def ctrlKey: Int

    Permalink

    Returns whether the "CTRL" key was pressed when the key event was triggered

  14. def currentTarget: Element

    Permalink

    Returns the element whose event listeners triggered the event

    Returns the element whose event listeners triggered the event

    Definition Classes
    Event
  15. def defaultPrevented: Boolean

    Permalink

    Returns whether or not the preventDefault() method was called for the event

    Returns whether or not the preventDefault() method was called for the event

    Definition Classes
    Event
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  18. def eventPhase: String

    Permalink

    Returns which phase of the event flow is currently being evaluated

    Returns which phase of the event flow is currently being evaluated

    Definition Classes
    Event
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  21. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  25. def isTrusted: Boolean

    Permalink

    Returns whether or not an event is trusted

    Returns whether or not an event is trusted

    Definition Classes
    Event
  26. def key: Int

    Permalink

    Returns the key value of the key represented by the event

  27. def keyCode: Int

    Permalink

    Returns the Unicode character code of the key that triggered the onkeypress event, or the Unicode key code of the key that triggered the onkeydown or onkeyup event

  28. def location: Int

    Permalink

    Returns the location of a key on the keyboard or device

  29. def metaKey: Int

    Permalink

    Returns whether the "meta" key was pressed when the key event was triggered

  30. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  31. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. def onkeydown(callback: Function): Unit

    Permalink

    The event occurs when the user is pressing a key

    The event occurs when the user is pressing a key

    Definition Classes
    KeyboardEvents
  34. def onkeypress(callback: Function): Unit

    Permalink

    The event occurs when the user presses a key

    The event occurs when the user presses a key

    Definition Classes
    KeyboardEvents
  35. def onkeyup(callback: Function): Unit

    Permalink

    The event occurs when the user releases a key

    The event occurs when the user releases a key

    Definition Classes
    KeyboardEvents
  36. def preventDefault(): Unit

    Permalink

    Cancels the event if it is cancelable, meaning that the default action that belongs to the event will not occur

    Cancels the event if it is cancelable, meaning that the default action that belongs to the event will not occur

    Definition Classes
    Event
  37. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  38. def shiftKey: Int

    Permalink

    Returns whether the "SHIFT" key was pressed when the key event was triggered

  39. def stopImmediatePropagation(): Unit

    Permalink

    Prevents other listeners of the same event from being called

    Prevents other listeners of the same event from being called

    Definition Classes
    Event
  40. def stopPropagation(): Unit

    Permalink

    Prevents further propagation of an event during event flow

    Prevents further propagation of an event during event flow

    Definition Classes
    Event
  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  42. def target: Element

    Permalink

    Returns the element that triggered the event

    Returns the element that triggered the event

    Definition Classes
    Event
  43. def timeStamp: Double

    Permalink

    Returns the time (in milliseconds relative to the epoch) at which the event was created

    Returns the time (in milliseconds relative to the epoch) at which the event was created

    Definition Classes
    Event
  44. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  45. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  46. def type: String

    Permalink

    Returns the name of the event

    Returns the name of the event

    Definition Classes
    Event
  47. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  48. def view: Any

    Permalink

    Returns a reference to the Window object where the event occurred TODO is this really a reference to Window?

    Returns a reference to the Window object where the event occurred TODO is this really a reference to Window?

    Definition Classes
    Event
  49. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. def which: Int

    Permalink

    Returns the Unicode character code of the key that triggered the onkeypress event, or the Unicode key code of the key that triggered the onkeydown or onkeyup event

Inherited from KeyboardEvents

Inherited from Event

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped