1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:47:35 +00:00

LibWeb: Add "which" attribute to UIEvent

This is non-standard but is supported by all major browsers.
This commit is contained in:
Igor Pissolati 2022-04-09 12:45:05 -03:00 committed by Andreas Kling
parent 1b94b4c593
commit 7f45a9e9c1
4 changed files with 7 additions and 0 deletions

View file

@ -58,6 +58,8 @@ public:
bool get_modifier_state(String const& key_arg);
virtual u32 which() const override { return m_key_code; }
private:
KeyboardEvent(FlyString const& event_name, KeyboardEventInit const& event_init)
: UIEvent(event_name, event_init)