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:
parent
c154d94964
commit
195cdb33de
2 changed files with 23 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue