mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add onkey* global event handler attributes
This commit is contained in:
parent
b1021c36c5
commit
7f63309602
4 changed files with 7 additions and 36 deletions
|
@ -274,6 +274,9 @@ macro_rules! global_event_handlers(
|
|||
);
|
||||
(NoOnload) => (
|
||||
event_handler!(click, GetOnclick, SetOnclick);
|
||||
event_handler!(keydown, GetOnkeydown, SetOnkeydown);
|
||||
event_handler!(keypress, GetOnkeypress, SetOnkeypress);
|
||||
event_handler!(keypress, GetOnkeyup, SetOnkeyup);
|
||||
event_handler!(input, GetOninput, SetOninput);
|
||||
event_handler!(change, GetOnchange, SetOnchange);
|
||||
event_handler!(submit, GetOnsubmit, SetOnsubmit);
|
||||
|
|
|
@ -24,6 +24,9 @@ interface GlobalEventHandlers {
|
|||
attribute EventHandler onclick;
|
||||
attribute EventHandler onload;
|
||||
attribute EventHandler oninput;
|
||||
attribute EventHandler onkeydown;
|
||||
attribute EventHandler onkeypress;
|
||||
attribute EventHandler onkeyup;
|
||||
attribute EventHandler onchange;
|
||||
attribute EventHandler onsubmit;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue