mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-20 01:01:54 +00:00
LibGUI: Change GUI::KeyEvent::key() type to KeyCode
...instead of a plain int. Yay for some type safety.
This commit is contained in:
parent
abfcd7b1b8
commit
fce49b3e32
Notes:
sideshowbarker
2024-07-19 06:05:10 +09:00
Author: https://github.com/bugaevc
Commit: fce49b3e32
Pull-request: https://github.com/SerenityOS/serenity/pull/2409
Reviewed-by: https://github.com/alimpfard
5 changed files with 11 additions and 5 deletions
|
@ -316,6 +316,8 @@ void HtmlView::keydown_event(GUI::KeyEvent& event)
|
|||
case Key_PageUp:
|
||||
vertical_scrollbar().set_value(vertical_scrollbar().value() - frame_inner_rect().height());
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue