mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
LibGUI: Handle cursor keydown events in AbstractView
Move the basic movement keys (up/down/left/right/home/end/pgup/pgdn) up to AbstractView::keydown_event() and have it call the virtual move_cursor() which is then implemented by subclasses.
This commit is contained in:
parent
4ba12e9c23
commit
27687b1c6e
Notes:
sideshowbarker
2024-07-19 02:55:25 +09:00
Author: https://github.com/awesomekling
Commit: 27687b1c6e
6 changed files with 53 additions and 120 deletions
|
@ -121,6 +121,7 @@ protected:
|
|||
AbstractView();
|
||||
virtual ~AbstractView() override;
|
||||
|
||||
virtual void keydown_event(KeyEvent&) override;
|
||||
virtual void mousedown_event(MouseEvent&) override;
|
||||
virtual void mousemove_event(MouseEvent&) override;
|
||||
virtual void mouseup_event(MouseEvent&) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue