diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2019-12-01 17:18:35 +0000 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2019-12-01 17:18:35 +0000 |
commit | a39a24f6f85bc26ff3fe5a071440573cee4230f5 (patch) | |
tree | 68487e127b39805cdff08113fdffbf077953fec9 /src/events/keyboard_event.h | |
parent | 7e52c7a7927f0b01e0a4588c78c29df884c1e900 (diff) | |
download | libdom-a39a24f6f85bc26ff3fe5a071440573cee4230f5.tar.gz libdom-a39a24f6f85bc26ff3fe5a071440573cee4230f5.tar.bz2 |
keyboard events: Update to latest DOM spec.
Diffstat (limited to 'src/events/keyboard_event.h')
-rw-r--r-- | src/events/keyboard_event.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/events/keyboard_event.h b/src/events/keyboard_event.h index 60cbca3..81b702f 100644 --- a/src/events/keyboard_event.h +++ b/src/events/keyboard_event.h @@ -18,17 +18,14 @@ struct dom_keyboard_event { struct dom_ui_event base; /**< The base class */ - dom_string *key_ident; /**< The identifier of the key in this - * event, please refer: - * http://www.w3.org/TR/DOM-Level-3-Events/keyset.html#KeySet-Set - * for detail - */ - - dom_key_location key_loc; /**< Indicate the location of the key on - * the keyboard - */ + dom_string *key; + dom_string *code; + dom_key_location location; uint32_t modifier_state; /**< The modifier keys state */ + + bool repeat; + bool is_composing; }; /* Destructor */ |