mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:37:36 +00:00
LibWeb: Add the missing KeyboardEvent IDL constructor
This commit also does a bit of general cleanup on the header file.
This commit is contained in:
parent
c5b924b1e6
commit
f74b612aa4
5 changed files with 99 additions and 35 deletions
21
Userland/Libraries/LibWeb/UIEvents/EventModifier.h
Normal file
21
Userland/Libraries/LibWeb/UIEvents/EventModifier.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Idan Horowitz <idan.horowitz@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/UIEvents/UIEvent.h>
|
||||
|
||||
namespace Web::UIEvents {
|
||||
|
||||
// https://w3c.github.io/uievents/#event-modifier-initializers
|
||||
struct EventModifierInit : public UIEventInit {
|
||||
bool ctrl_key { false };
|
||||
bool shift_key { false };
|
||||
bool alt_key { false };
|
||||
bool meta_key { false };
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue