Empirical
Public Member Functions | Public Attributes | List of all members
emp::web::KeyboardEvent Struct Reference

Keyboard-specific information about web events. More...

#include <events.h>

Inheritance diagram for emp::web::KeyboardEvent:
emp::web::Event

Public Member Functions

template<int ARG_ID>
void LoadFromArg ()
 

Public Attributes

bool altKey
 Was "ALT" key was pressed? More...
 
bool ctrlKey
 Was "CTRL" key pressed? More...
 
bool metaKey
 Was "META" key pressed? More...
 
bool shiftKey
 Was "SHIFT" key pressed? More...
 
int charCode
 Unicode character pressed. More...
 
int keyCode
 Which key was pressed on the keyboard (e.g., 'a' and 'A' are the same) More...
 
bool bubbles
 Is this a bubbling event? More...
 
bool cancelable
 Can the default action be prevented? More...
 

Detailed Description

Keyboard-specific information about web events.

Member Function Documentation

template<int ARG_ID>
void emp::web::KeyboardEvent::LoadFromArg ( )
inline

Member Data Documentation

bool emp::web::KeyboardEvent::altKey

Was "ALT" key was pressed?

bool emp::web::Event::bubbles
inherited

Is this a bubbling event?

bool emp::web::Event::cancelable
inherited

Can the default action be prevented?

int emp::web::KeyboardEvent::charCode

Unicode character pressed.

bool emp::web::KeyboardEvent::ctrlKey

Was "CTRL" key pressed?

int emp::web::KeyboardEvent::keyCode

Which key was pressed on the keyboard (e.g., 'a' and 'A' are the same)

bool emp::web::KeyboardEvent::metaKey

Was "META" key pressed?

bool emp::web::KeyboardEvent::shiftKey

Was "SHIFT" key pressed?


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