mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:37:45 +00:00
LibWeb: Fire "input" and "change" events when editing a text <input>
This isn't entirely on-spec, but will hopefully allow us to make progress in other areas.
This commit is contained in:
parent
4cbce0e34c
commit
5f54b8dd6c
5 changed files with 39 additions and 1 deletions
|
@ -27,7 +27,12 @@ public:
|
|||
|
||||
void set_always_editable(bool b) { m_always_editable = b; }
|
||||
|
||||
void set_owner_input_element(Badge<HTML::HTMLInputElement>, HTML::HTMLInputElement&);
|
||||
HTML::HTMLInputElement* owner_input_element() { return m_owner_input_element; }
|
||||
|
||||
private:
|
||||
WeakPtr<HTML::HTMLInputElement> m_owner_input_element;
|
||||
|
||||
bool m_always_editable { false };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue