mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 17:47:45 +00:00
LibWeb: Add a proper FocusEvent interface for "focus" and "blur" events
This commit is contained in:
parent
386912c019
commit
627ad6c37c
9 changed files with 80 additions and 3 deletions
15
Userland/Libraries/LibWeb/UIEvents/FocusEvent.idl
Normal file
15
Userland/Libraries/LibWeb/UIEvents/FocusEvent.idl
Normal file
|
@ -0,0 +1,15 @@
|
|||
#import <UIEvents/UIEvent.idl>
|
||||
|
||||
[Exposed=Window]
|
||||
interface FocusEvent : UIEvent {
|
||||
|
||||
constructor(DOMString type, optional FocusEventInit eventInitDict = {});
|
||||
readonly attribute EventTarget? relatedTarget;
|
||||
|
||||
};
|
||||
|
||||
dictionary FocusEventInit : UIEventInit {
|
||||
|
||||
EventTarget? relatedTarget = null;
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue