webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Public Attributes | List of all members
KeyboardEvent Interface Reference

import"KeyboardEvent.idl";

Inheritance diagram for KeyboardEvent:
UIEvent Event

Public Member Functions

boolean getModifierState (DOMString keyArg)
 
void initKeyboardEvent (optional DOMString type="undefined", optional boolean canBubble=false, optional boolean cancelable=false, optional DOMWindow? view=null, optional DOMString keyIdentifier="undefined", optional unsigned long location=0, optional boolean ctrlKey=false, optional boolean altKey=false, optional boolean shiftKey=false, optional boolean metaKey=false, optional boolean altGraphKey=false)
 
- Public Member Functions inherited from UIEvent
void initUIEvent (optional DOMString type="undefined", optional boolean canBubble=false, optional boolean cancelable=false, optional DOMWindow? view=null, optional long detail=0)
 
void_hidEvent ()
 
NSString_unmodifiedInput ()
 
NSString_modifiedInput ()
 
NSInteger _modifierFlags ()
 
BOOL _isKeyDown ()
 
- Public Member Functions inherited from Event
sequence< NodecomposedPath ()
 
void stopPropagation ()
 
void preventDefault ()
 
void initEvent (DOMString type, optional boolean bubbles=false, optional boolean cancelable=false)
 
void stopImmediatePropagation ()
 

Public Attributes

const unsigned long DOM_KEY_LOCATION_STANDARD = 0x00
 
const unsigned long DOM_KEY_LOCATION_LEFT = 0x01
 
const unsigned long DOM_KEY_LOCATION_RIGHT = 0x02
 
const unsigned long DOM_KEY_LOCATION_NUMPAD = 0x03
 
readonly attribute DOMString key
 
readonly attribute DOMString code
 
readonly attribute unsigned long location
 
readonly attribute boolean ctrlKey
 
readonly attribute boolean shiftKey
 
readonly attribute boolean altKey
 
readonly attribute boolean metaKey
 
readonly attribute boolean repeat
 
readonly attribute boolean isComposing
 
readonly attribute DOMString keyIdentifier
 
readonly attribute unsigned long keyLocation
 
readonly attribute boolean altGraphKey
 
readonly attribute unsigned long charCode
 
readonly attribute unsigned long keyCode
 
readonly attribute unsigned long which
 
- Public Attributes inherited from UIEvent
readonly attribute DOMWindow view
 
readonly attribute long detail
 
readonly attribute long layerX
 
readonly attribute long layerY
 
readonly attribute long pageX
 
readonly attribute long pageY
 
readonly attribute long which
 
- Public Attributes inherited from Event
EventType Type
 
union {
   MoveEvent   Move
 
   SizeEvent   Size
 
   KeyEvent   Key
 
   MouseMoveEvent   MouseMove
 
   MouseButtonEvent   MouseButton
 
   MouseWheelEvent   MouseWheel
 
}; 
 
const unsigned short NONE = 0
 
const unsigned short CAPTURING_PHASE = 1
 
const unsigned short AT_TARGET = 2
 
const unsigned short BUBBLING_PHASE = 3
 
readonly attribute DOMString type
 
readonly attribute EventTarget target
 
readonly attribute EventTarget currentTarget
 
readonly attribute unsigned short eventPhase
 
readonly attribute boolean bubbles
 
readonly attribute boolean cancelable
 
readonly attribute boolean composed
 
readonly attribute DOMTimeStamp timeStamp
 
readonly attribute boolean defaultPrevented
 
readonly attribute boolean isTrusted
 
readonly attribute EventTarget srcElement
 
attribute boolean returnValue
 
attribute boolean cancelBubble
 

Additional Inherited Members

- Public Types inherited from Event
enum  EventType {
  EVENT_CLOSED, EVENT_MOVED, EVENT_RESIZED, EVENT_LOST_FOCUS,
  EVENT_GAINED_FOCUS, EVENT_TEXT_ENTERED, EVENT_KEY_PRESSED, EVENT_KEY_RELEASED,
  EVENT_MOUSE_WHEEL_MOVED, EVENT_MOUSE_BUTTON_PRESSED, EVENT_MOUSE_BUTTON_RELEASED, EVENT_MOUSE_MOVED,
  EVENT_MOUSE_ENTERED, EVENT_MOUSE_LEFT, EVENT_TEST
}
 
- Properties inherited from UIEvent
UIKeyboardInputFlags _inputFlags
 

Member Function Documentation

◆ getModifierState()

boolean KeyboardEvent::getModifierState ( DOMString  keyArg)

◆ initKeyboardEvent()

void KeyboardEvent::initKeyboardEvent ( optional DOMString  type = "undefined",
optional boolean  canBubble = false,
optional boolean  cancelable = false,
optional DOMWindow view = null,
optional DOMString  keyIdentifier = "undefined",
optional unsigned long  location = 0,
optional boolean  ctrlKey = false,
optional boolean  altKey = false,
optional boolean  shiftKey = false,
optional boolean  metaKey = false,
optional boolean  altGraphKey = false 
)

Member Data Documentation

◆ altGraphKey

readonly attribute boolean KeyboardEvent::altGraphKey

◆ altKey

readonly attribute boolean KeyboardEvent::altKey

◆ charCode

readonly attribute unsigned long KeyboardEvent::charCode

◆ code

readonly attribute DOMString KeyboardEvent::code

◆ ctrlKey

readonly attribute boolean KeyboardEvent::ctrlKey

◆ DOM_KEY_LOCATION_LEFT

const unsigned long KeyboardEvent::DOM_KEY_LOCATION_LEFT = 0x01

◆ DOM_KEY_LOCATION_NUMPAD

const unsigned long KeyboardEvent::DOM_KEY_LOCATION_NUMPAD = 0x03

◆ DOM_KEY_LOCATION_RIGHT

const unsigned long KeyboardEvent::DOM_KEY_LOCATION_RIGHT = 0x02

◆ DOM_KEY_LOCATION_STANDARD

const unsigned long KeyboardEvent::DOM_KEY_LOCATION_STANDARD = 0x00

◆ isComposing

readonly attribute boolean KeyboardEvent::isComposing

◆ key

readonly attribute DOMString KeyboardEvent::key

◆ keyCode

readonly attribute unsigned long KeyboardEvent::keyCode

◆ keyIdentifier

readonly attribute DOMString KeyboardEvent::keyIdentifier

◆ keyLocation

readonly attribute unsigned long KeyboardEvent::keyLocation

◆ location

readonly attribute unsigned long KeyboardEvent::location

◆ metaKey

readonly attribute boolean KeyboardEvent::metaKey

◆ repeat

readonly attribute boolean KeyboardEvent::repeat

◆ shiftKey

readonly attribute boolean KeyboardEvent::shiftKey

◆ which

readonly attribute unsigned long KeyboardEvent::which

The documentation for this interface was generated from the following file: