t

japgolly.scalajs.react.raw

SyntheticKeyboardEvent

trait SyntheticKeyboardEvent[+DOMEventTarget <: Node] extends Object with SyntheticUIEvent[DOMEventTarget]

https://github.com/facebook/react/blob/master/packages/react-dom/src/events/SyntheticKeyboardEvent.js

Annotations
@JSType() @native() @nowarn()
Linear Supertypes
SyntheticUIEvent[DOMEventTarget], SyntheticEvent[DOMEventTarget], Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SyntheticKeyboardEvent
  2. SyntheticUIEvent
  3. SyntheticEvent
  4. Object
  5. Any
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val altKey: Boolean
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val bubbles: Boolean
    Definition Classes
    SyntheticEvent
  7. val cancelable: Boolean
    Definition Classes
    SyntheticEvent
  8. val charCode: Int

    printable keys (letters, numbers, symbols)

  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  10. val code: String

    The KeyboardEvent.code property represents a physical key on the keyboard (as opposed to the character generated by pressing the key).

    The KeyboardEvent.code property represents a physical key on the keyboard (as opposed to the character generated by pressing the key). In other words, this property returns a value that isn't altered by keyboard layout or the state of the modifier keys.

    If the input device isn't a physical keyboard, but is instead a virtual keyboard or accessibility device, the returned value will be set by the browser to match as closely as possible to what would happen with a physical keyboard, to maximize compatibility between physical and virtual input devices.

    This property is useful when you want to handle keys based on their physical positions on the input device rather than the characters associated with those keys; this is especially common when writing code to handle input for games that simulate a gamepad-like environment using keys on the keyboard. Be aware, however, that you can't use the value reported by KeyboardEvent.code to determine the character generated by the keystroke, because the keycode's name may not match the actual character that's printed on the key or that's generated by the computer when the key is pressed.

    For example, the code returned is "KeyQ" for the Q key on a QWERTY layout keyboard, but the same code value also represents the ' key on Dvorak keyboards and the A key on AZERTY keyboards. That makes it impossible to use the value of code to determine what the name of the key is to users if they're not using an anticipated keyboard layout.

    To determine what character corresponds with the key event, use the KeyboardEvent.key property instead.

  11. val ctrlKey: Boolean
  12. val currentTarget: DOMEventTarget
    Definition Classes
    SyntheticEvent
  13. def defaultPrevented: Boolean
    Definition Classes
    SyntheticEvent
  14. def detail: Double

    Specifies some detail information about the Event, depending on the type of event.

    Specifies some detail information about the Event, depending on the type of event. The un-initialized value of this attribute must be 0.

    Definition Classes
    SyntheticUIEvent
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  17. val eventPhase: Double
    Definition Classes
    SyntheticEvent
  18. val eventType: String
    Definition Classes
    SyntheticEvent
    Annotations
    @JSName("type")
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. def getModifierState(keyArg: String): Boolean
  21. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. def isDefaultPrevented(): Boolean
    Definition Classes
    SyntheticEvent
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def isPersistent(): Boolean
    Definition Classes
    SyntheticEvent
  26. def isPropagationStopped(): Boolean
    Definition Classes
    SyntheticEvent
  27. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  28. val isTrusted: Boolean
    Definition Classes
    SyntheticEvent
  29. val key: String

    The KeyboardEvent interface's key read-only property returns the value of the key pressed by the user, taking into consideration the state of modifier keys such as Shift as well as the keyboard locale and layout.

    The KeyboardEvent interface's key read-only property returns the value of the key pressed by the user, taking into consideration the state of modifier keys such as Shift as well as the keyboard locale and layout. Its value is determined as follows:

    • If the pressed key has a printed representation, the returned value is a non-empty Unicode character string containing the printable representation of the key.
    • If the pressed key is a control or special character, the returned value is one of the pre-defined key values.
    • If the KeyboardEvent represents the press of a dead key, the key value must be "Dead".
    • Some specialty keyboard keys (such as the extended keys for controlling media on multimedia keyboards) don't generate key codes on Windows; instead, they trigger WM_APPCOMMAND events. These events get mapped to DOM keyboard events, and are listed among the "Virtual key codes" for Windows, even though they aren't actually key codes.
    • If the key cannot be identified, the returned value is Unidentified.
  30. val keyCode: Int

    non-printable keys (modifiers, arrow keys, tab, esc)

  31. val locale: String
  32. val location: Double
  33. val metaKey: Boolean
  34. val nativeEvent: KeyboardEvent
  35. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  38. def persist(): Unit

    If you want to access the event properties in an asynchronous way, call this on the event, which will remove the synthetic event from the pool and allow references to the event to be retained by user code.

    If you want to access the event properties in an asynchronous way, call this on the event, which will remove the synthetic event from the pool and allow references to the event to be retained by user code.

    Definition Classes
    SyntheticEvent
  39. def preventDefault(): Unit

    Stops the default action of an element from happening.

    Stops the default action of an element from happening. For example: Prevent a submit button from submitting a form Prevent a link from following the URL

    Definition Classes
    SyntheticEvent
  40. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  41. val repeat: Boolean
  42. val shiftKey: Boolean
  43. def stopPropagation(): Unit

    Stops the bubbling of an event to parent elements, preventing any parent event handlers from being executed.

    Stops the bubbling of an event to parent elements, preventing any parent event handlers from being executed.

    Definition Classes
    SyntheticEvent
  44. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  45. val target: DOMEventTarget
    Definition Classes
    SyntheticEvent
  46. val timeStamp: Double
    Definition Classes
    SyntheticEvent
  47. def toLocaleString(): String
    Definition Classes
    Object
  48. def toString(): String
    Definition Classes
    AnyRef → Any
  49. def valueOf(): Any
    Definition Classes
    Object
  50. val view: Object

    The view attribute identifies the AbstractView from which the event was generated.

    The view attribute identifies the AbstractView from which the event was generated. The un-initialized value of this attribute must be null.

    Definition Classes
    SyntheticUIEvent
  51. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  52. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  53. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  54. val which: Int

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from SyntheticUIEvent[DOMEventTarget]

Inherited from SyntheticEvent[DOMEventTarget]

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped