1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:57:35 +00:00

LibWeb: Fire "keyup" events as well :^)

This was easy, now that we have KeyboardEvent.
This commit is contained in:
Andreas Kling 2021-09-28 15:39:35 +02:00
parent 554c344ffe
commit 0af0ee4293
10 changed files with 28 additions and 0 deletions

View file

@ -169,6 +169,11 @@ void ClientConnection::key_down(i32 key, unsigned int modifiers, u32 code_point)
page().handle_keydown((KeyCode)key, modifiers, code_point);
}
void ClientConnection::key_up(i32 key, unsigned int modifiers, u32 code_point)
{
page().handle_keyup((KeyCode)key, modifiers, code_point);
}
void ClientConnection::debug_request(const String& request, const String& argument)
{
if (request == "dump-dom-tree") {