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

LibWeb: Send key events to the WebContent process

This makes contenteditable work in multi-process mode. :^)
This commit is contained in:
Andreas Kling 2020-08-03 19:58:59 +02:00
parent ea9ac3155d
commit 6e221adade
5 changed files with 15 additions and 0 deletions

View file

@ -153,4 +153,9 @@ void ClientConnection::handle(const Messages::WebContentServer::MouseUp& message
page().handle_mouseup(message.position(), message.button(), message.modifiers());
}
void ClientConnection::handle(const Messages::WebContentServer::KeyDown& message)
{
page().handle_keydown((KeyCode)message.key(), message.modifiers(), message.code_point());
}
}