mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00: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:
parent
5939af14d4
commit
01022eb5d6
11 changed files with 92 additions and 2 deletions
|
@ -48,6 +48,9 @@ public:
|
|||
bool handle_keydown(KeyCode, unsigned modifiers, u32 code_point);
|
||||
|
||||
private:
|
||||
bool focus_next_element();
|
||||
bool focus_previous_element();
|
||||
|
||||
LayoutDocument* layout_root();
|
||||
const LayoutDocument* layout_root() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue