1
Fork 0
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:
Timothy Flynn 2023-07-08 19:30:36 -04:00 committed by Andreas Kling
parent 71bf9f1d0d
commit cd995d113b
2 changed files with 27 additions and 1 deletions

View file

@ -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);