Key

class Key(code: String, key: String, ctrl: Boolean, alt: Boolean, shift: Boolean, meta: Boolean)

Key represents a key from KeyboardEvent

More info here

Constructors

Key
Link copied to clipboard
js
fun Key(key: String)
Key
Link copied to clipboard
js
fun Key(e: KeyboardEvent)
Key
Link copied to clipboard
js
fun Key(code: String, key: String, ctrl: Boolean = false, alt: Boolean = false, shift: Boolean = false, meta: Boolean = false)

Functions

equals
Link copied to clipboard
js
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
js
open override fun hashCode(): Int
toString
Link copied to clipboard
js
open override fun toString(): String

Properties

alt
Link copied to clipboard
js
val alt: Boolean = false
code
Link copied to clipboard
js
val code: String
ctrl
Link copied to clipboard
js
val ctrl: Boolean = false
key
Link copied to clipboard
js
val key: String
meta
Link copied to clipboard
js
val meta: Boolean = false
shift
Link copied to clipboard
js
val shift: Boolean = false