1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:27:45 +00:00

Ladybird/WebContentView: Make Tab and Shift+Tab work

These didn't work, for two reasons:

1. Qt swallows all Tab key presses by default. We have to override
   the event() function in order to receive them.

2. Qt transforms Shift+Tab into a fake "Backtab" key. We have to
   undo this transformation and send Shift+Tab to WebContent.
This commit is contained in:
Andreas Kling 2022-10-11 17:17:49 +02:00 committed by Andrew Kaster
parent c154d94964
commit 195cdb33de
2 changed files with 23 additions and 0 deletions

View file

@ -87,6 +87,7 @@ public:
virtual void hideEvent(QHideEvent*) override;
virtual void focusInEvent(QFocusEvent*) override;
virtual void focusOutEvent(QFocusEvent*) override;
virtual bool event(QEvent*) override;
void debug_request(String const& request, String const& argument);