mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
We have support for using (shift+)tab to move focus to the next/previous element on the page. However, there were several ways for this to crash as written. This updates our implementation to check if we did not find a node to move focus to, and to reset focus to the first/last node in the document. This doesn't seem to work when wrapping around from the first to the last node. A FIXME has been added for that, as this would already not work before this patch (the main focus here is not crashing).