KeyboardEvent
Generated.swift:10458class KeyboardEvent
class KeyboardEvent
import DOM
class UIEvent
protocol Any_Event_or_String : ConvertibleToJSValue
protocol ConstructibleFromJSValue
Types conforming to this protocol can be constructed from JSValue
.
protocol ConvertibleToJSValue
Objects that can be converted to a JavaScript value, preferably in a lossless manner.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol JSBridgedClass : JSBridgedType
Conform to this protocol when your Swift class wraps a JavaScript class.
protocol JSBridgedType : ConstructibleFromJSValue, ConvertibleToJSValue, CustomStringConvertible
Use this protocol when your type has no single JavaScript class. For example, a union type of multiple classes or primitive values.
convenience init(type: String, eventInitDict: KeyboardEventInit? = nil)
required init(unsafelyWrapping jsObject: JSObject)
static let DOM_KEY_LOCATION_LEFT: UInt32
static let DOM_KEY_LOCATION_NUMPAD: UInt32
static let DOM_KEY_LOCATION_RIGHT: UInt32
static let DOM_KEY_LOCATION_STANDARD: UInt32
override class var constructor: JSFunction? { get }
@ReadonlyAttribute var altKey: Bool { get }
@ReadonlyAttribute var charCode: UInt32 { get }
@ReadonlyAttribute var code: String { get }
@ReadonlyAttribute var ctrlKey: Bool { get }
@ReadonlyAttribute var isComposing: Bool { get }
@ReadonlyAttribute var key: String { get }
@ReadonlyAttribute var keyCode: UInt32 { get }
@ReadonlyAttribute var location: UInt32 { get }
@ReadonlyAttribute var metaKey: Bool { get }
@ReadonlyAttribute var `repeat`: Bool { get }
@ReadonlyAttribute var shiftKey: Bool { get }
func getModifierState(keyArg: String) -> Bool
func initKeyboardEvent(typeArg: String, bubblesArg: Bool? = nil, cancelableArg: Bool? = nil, viewArg: Window? = nil, keyArg: String? = nil, locationArg: UInt32? = nil, ctrlKey: Bool? = nil, altKey: Bool? = nil, shiftKey: Bool? = nil, metaKey: Bool? = nil)