mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:47:37 +00:00
LibWeb: Move is_focusable() virtual from Element to EventTarget
This commit is contained in:
parent
9391311760
commit
2666cb7b01
2 changed files with 2 additions and 2 deletions
|
@ -103,8 +103,6 @@ public:
|
|||
ExceptionOr<void> set_inner_html(String const&);
|
||||
|
||||
bool is_focused() const;
|
||||
virtual bool is_focusable() const { return false; }
|
||||
|
||||
bool is_active() const;
|
||||
|
||||
NonnullRefPtr<HTMLCollection> get_elements_by_class_name(FlyString const&);
|
||||
|
|
|
@ -26,6 +26,8 @@ public:
|
|||
void ref() { ref_event_target(); }
|
||||
void unref() { unref_event_target(); }
|
||||
|
||||
virtual bool is_focusable() const { return false; }
|
||||
|
||||
void add_event_listener(const FlyString& event_name, RefPtr<EventListener>);
|
||||
void remove_event_listener(const FlyString& event_name, RefPtr<EventListener>);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue