mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 11:37:45 +00:00
LibWeb: Implement KeyboardEvent.location closer to the spec
This commit is contained in:
parent
71bf9f1d0d
commit
cd995d113b
2 changed files with 27 additions and 1 deletions
|
@ -24,6 +24,13 @@ struct KeyboardEventInit : public EventModifierInit {
|
|||
u32 char_code { 0 };
|
||||
};
|
||||
|
||||
enum class DOMKeyLocation {
|
||||
Standard = 0,
|
||||
Left = 1,
|
||||
Right = 2,
|
||||
Numpad = 3,
|
||||
};
|
||||
|
||||
// https://www.w3.org/TR/uievents/#interface-keyboardevent
|
||||
class KeyboardEvent final : public UIEvent {
|
||||
WEB_PLATFORM_OBJECT(KeyboardEvent, UIEvent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue