LibGUI: Change GUI::KeyEvent::key() type to KeyCode

...instead of a plain int. Yay for some type safety.
This commit is contained in:
Sergey Bugaev 2020-05-27 00:29:57 +03:00 committed by Andreas Kling
parent abfcd7b1b8
commit fce49b3e32
Notes: sideshowbarker 2024-07-19 06:05:10 +09:00
5 changed files with 11 additions and 5 deletions

View file

@ -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;
}
}