mirror of
https://github.com/RGBCube/serenity
synced 2025-05-26 02:05:08 +00:00
LibHTML: Add basic keyboard navigation (up/down/pgdn/pgup/home/end/etc)
This commit is contained in:
parent
89aaae82a1
commit
775cbbb422
2 changed files with 37 additions and 0 deletions
|
@ -32,6 +32,8 @@ public:
|
|||
Function<void(const String&)> on_title_change;
|
||||
Function<void(const URL&)> on_load_start;
|
||||
|
||||
virtual bool accepts_focus() const override { return true; }
|
||||
|
||||
protected:
|
||||
HtmlView(GWidget* parent = nullptr);
|
||||
|
||||
|
@ -39,6 +41,7 @@ protected:
|
|||
virtual void paint_event(GPaintEvent&) override;
|
||||
virtual void mousemove_event(GMouseEvent&) override;
|
||||
virtual void mousedown_event(GMouseEvent&) override;
|
||||
virtual void keydown_event(GKeyEvent&) override;
|
||||
|
||||
private:
|
||||
void layout_and_sync_size();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue