Liking cljdoc? Tell your friends :D

web.keyboard.KeyboardEvent

KeyboardEvent objects describe a user interaction with the keyboard; event describes a single interaction between the user and a key combination of a key with modifier keys) on the keyboard.

KeyboardEvent objects describe a user interaction with the keyboard;
event describes a single interaction between the user and a key
combination of a key with modifier keys) on the keyboard.
raw docstring

alt-keycljs

(alt-key this)

Property.

The KeyboardEvent.altKey read-only property is a js.Boolean indicates if the alt key (Option or ⌥ on OS X) was pressed (true) not (false) when the event occured.

var altKeyPressed = instanceOfKeyboardEvent.altKey

See also: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/altKey

Property.

The KeyboardEvent.altKey read-only property is a `js.Boolean`
indicates if the alt key (Option or ⌥ on OS X) was pressed (true)
not (false) when the event occured.

`var altKeyPressed = instanceOfKeyboardEvent.altKey`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/altKey`
sourceraw docstring

char-codecljs

(char-code this)

Property.

The charCode read-only property of the web.keyboard.KeyboardEvent returns the Unicode value of a character key pressed during a event.

var code = event.charCode;

See also: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/charCode

Property.

The charCode read-only property of the `web.keyboard.KeyboardEvent`
returns the Unicode value of a character key pressed during a
event.

`var code = event.charCode;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/charCode`
sourceraw docstring

codecljs

(code this)

Property.

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

See also: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code

Property.

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

See also: `https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code`
sourceraw docstring

constructorcljs

Constructor.

The KeyboardEvent() constructor creates a new web.keyboard.KeyboardEvent.

See also: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/KeyboardEvent

Constructor.

The KeyboardEvent() constructor creates a new `web.keyboard.KeyboardEvent`.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/KeyboardEvent`
sourceraw docstring

ctrl-keycljs

(ctrl-key this)

Property.

The KeyboardEvent.ctrlKey read-only property returns a js.Boolean indicates if the control key was pressed (true) or not (false) the event occured.

var ctrlKeyPressed = instanceOfKeyboardEvent.ctrlKey

See also: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/ctrlKey

Property.

The KeyboardEvent.ctrlKey read-only property returns a `js.Boolean`
indicates if the control key was pressed (true) or not (false)
the event occured.

`var ctrlKeyPressed = instanceOfKeyboardEvent.ctrlKey`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/ctrlKey`
sourceraw docstring

get-modifier-statecljs

(get-modifier-state this key-arg)

Method.

The KeyboardEvent.getModifierState() method returns the current of the specified modifier key: true if the modifier is active is the modifier key is pressed or locked), otherwise, false.

var active = event.getModifierState(keyArg);

See also: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/getModifierState

Method.

The KeyboardEvent.getModifierState() method returns the current
of the specified modifier key: true if the modifier is active
is the modifier key is pressed or locked), otherwise, false.

`var active = event.getModifierState(keyArg);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/getModifierState`
sourceraw docstring

init-key-eventcljs

(init-key-event this & args)

Method.

The KeyboardEvent.initKeyEvent() method is used to initialize value of an event created using document.createEvent("KeyboardEvent"). initialized in this way must have been created with the document.createEvent("KeyboardEvent") initKeyEvent() must be called to set the event before it is dispatched.

event.initKeyEvent (type, bubbles, cancelable, viewArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, keyCodeArg, charCodeArg)

See also: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyEvent

Method.

The KeyboardEvent.initKeyEvent() method is used to initialize
value of an event created using `document.createEvent`(\"KeyboardEvent\").
initialized in this way must have been created with the `document.createEvent`(\"KeyboardEvent\")
initKeyEvent() must be called to set the event before it is dispatched.

`event.initKeyEvent (type, bubbles, cancelable, viewArg,
ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg,
keyCodeArg, charCodeArg)`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyEvent`
sourceraw docstring

init-keyboard-eventcljs

(init-keyboard-event this & args)

Method.

The KeyboardEvent.initKeyboardEvent() method initializes the of a keyboard event object. This method was introduced in draft DOM Level 3 Events, but deprecated in newer draft. Gecko won't this feature since implementing this method as experimental broke web apps (see bug 999645). Web applications should use constructor of this if it's available.

kbdEvent.initKeyboardEvent(typeArg, canBubbleArg, cancelableArg, viewArg, charArg, keyArg, locationArg, modifiersListArg, repeat)

See also: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent

Method.

The KeyboardEvent.initKeyboardEvent() method initializes the
of a keyboard event object. This method was introduced in draft
DOM Level 3 Events, but deprecated in newer draft. Gecko won't
this feature since implementing this method as experimental broke
web apps (see bug 999645). Web applications should use constructor
of this if it's available.

`kbdEvent.initKeyboardEvent(typeArg, canBubbleArg, cancelableArg,
viewArg, charArg, keyArg,
locationArg, modifiersListArg, repeat)`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent`
sourceraw docstring

is-composingcljs

(is-composing this)

Property.

The KeyboardEvent.isComposing read-only property returns a js.Boolean indicating if the event is fired after compositionstart and before

var bool = event.isComposing;

See also: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/isComposing

Property.

The KeyboardEvent.isComposing read-only property returns a `js.Boolean`
indicating if the event is fired after compositionstart and before

`var bool = event.isComposing;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/isComposing`
sourceraw docstring

keycljs

(key this)

Property.

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

See also: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key

Property.

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

See also: `https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key`
sourceraw docstring

key-codecljs

(key-code this)

Property.

The deprecated KeyboardEvent.keyCode read-only property represents system and implementation dependent numerical code identifying unmodified value of the pressed key.

See also: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode

Property.

The deprecated KeyboardEvent.keyCode read-only property represents
system and implementation dependent numerical code identifying
unmodified value of the pressed key.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode`
sourceraw docstring

key-identifiercljs

(key-identifier this)

Property.

The deprecated KeyboardEvent.keyIdentifier read-only property a "key identifier" string that can be used to determine what was pressed. Its non-deprecated replacement is KeyboardEvent.key.

See also: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyIdentifier

Property.

The deprecated KeyboardEvent.keyIdentifier read-only property
a \"key identifier\" string that can be used to determine what
was pressed. Its non-deprecated replacement is `KeyboardEvent.key`.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyIdentifier`
sourceraw docstring

locationcljs

(location this)

Property.

The KeyboardEvent.location read-only property returns an unsigned representing the location of the key on the keyboard or other device.

var location = event.location;

See also: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/location

Property.

The KeyboardEvent.location read-only property returns an unsigned
representing the location of the key on the keyboard or other
device.

`var location = event.location;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/location`
sourceraw docstring

meta-keycljs

(meta-key this)

Property.

The KeyboardEvent.metaKey read-only property returning a js.Boolean indicates if the Meta key was pressed (true) or not (false) when event occurred. Some operating systems may intercept the key it is never detected.

var metaKeyPressed = instanceOfKeyboardEvent.metaKey

See also: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/metaKey

Property.

The KeyboardEvent.metaKey read-only property returning a `js.Boolean`
indicates if the Meta key was pressed (true) or not (false) when
event occurred. Some operating systems may intercept the key
it is never detected.

`var metaKeyPressed = instanceOfKeyboardEvent.metaKey`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/metaKey`
sourceraw docstring

repeatcljs

(repeat this)

Property.

The repeat read-only property of the web.keyboard.KeyboardEvent returns a js.Boolean that is true if the given key is being down such that it is automatically repeating.

var repeat = event.repeat;

See also: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/repeat

Property.

The repeat read-only property of the `web.keyboard.KeyboardEvent`
returns a `js.Boolean` that is true if the given key is being
down such that it is automatically repeating.

`var repeat = event.repeat;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/repeat`
sourceraw docstring

set-char-code!cljs

(set-char-code! this val)

Property.

The charCode read-only property of the web.keyboard.KeyboardEvent returns the Unicode value of a character key pressed during a event.

var code = event.charCode;

See also: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/charCode

Property.

The charCode read-only property of the `web.keyboard.KeyboardEvent`
returns the Unicode value of a character key pressed during a
event.

`var code = event.charCode;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/charCode`
sourceraw docstring

set-key-identifier!cljs

(set-key-identifier! this val)

Property.

The deprecated KeyboardEvent.keyIdentifier read-only property a "key identifier" string that can be used to determine what was pressed. Its non-deprecated replacement is KeyboardEvent.key.

See also: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyIdentifier

Property.

The deprecated KeyboardEvent.keyIdentifier read-only property
a \"key identifier\" string that can be used to determine what
was pressed. Its non-deprecated replacement is `KeyboardEvent.key`.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyIdentifier`
sourceraw docstring

shift-keycljs

(shift-key this)

Property.

The KeyboardEvent.shiftKey read-only property is a js.Boolean indicates if the shift key was pressed (true) or not (false) the event occurred.

var shiftKeyPressed = instanceOfKeyboardEvent.shiftKey

See also: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/shiftKey

Property.

The KeyboardEvent.shiftKey read-only property is a `js.Boolean`
indicates if the shift key was pressed (true) or not (false)
the event occurred.

`var shiftKeyPressed = instanceOfKeyboardEvent.shiftKey`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/shiftKey`
sourceraw docstring

whichcljs

(which this)

Property.

The which read-only property of the web.keyboard.KeyboardEvent returns the numeric keyCode of the key pressed, or the character (charCode) for an alphanumeric key pressed.

var keyResult = event.which;

See also: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/which

Property.

The which read-only property of the `web.keyboard.KeyboardEvent`
returns the numeric keyCode of the key pressed, or the character
(charCode) for an alphanumeric key pressed.

`var keyResult = event.which;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/which`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close