mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Allow focusing individual (focusable) elements with Tab key
You can now cycle through focusable elements (currently only hyperlinks are focusable) with the Tab key. The focus outline is rendered in a new FocusOutline paint phase.
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 03:38:16 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/01022eb5d69
@@ -39,6 +39,8 @@ public:
|
||||
|
||||
String href() const { return attribute(HTML::AttributeNames::href); }
|
||||
String target() const { return attribute(HTML::AttributeNames::target); }
|
||||
|
||||
virtual bool is_focusable() const override { return has_attribute(HTML::AttributeNames::href); }
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user