summaryrefslogtreecommitdiff
path: root/WindowServer
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-26 06:39:13 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-26 06:39:13 +0100
commitd72575d1967060b691e94f462997fdc43e5cd384 (patch)
treea108dacc4113b8ddd5e58dc7faf0de79aa585ebf /WindowServer
parent57fb0272168371de0fac1d54d0f5830b1565aa94 (diff)
downloadserenity-d72575d1967060b691e94f462997fdc43e5cd384.zip
LibGUI: Start bringing up GTextBox in the standalone world.
Diffstat (limited to 'WindowServer')
-rw-r--r--WindowServer/WSWindow.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/WindowServer/WSWindow.cpp b/WindowServer/WSWindow.cpp
index 6103119fa7..ff2432def0 100644
--- a/WindowServer/WSWindow.cpp
+++ b/WindowServer/WSWindow.cpp
@@ -90,6 +90,14 @@ void WSWindow::on_message(WSMessage& message)
gui_event.key.ctrl = static_cast<WSKeyEvent&>(message).ctrl();
gui_event.key.shift = static_cast<WSKeyEvent&>(message).shift();
break;
+ case WSMessage::KeyUp:
+ gui_event.type = GUI_Event::Type::KeyUp;
+ gui_event.key.character = static_cast<WSKeyEvent&>(message).character();
+ gui_event.key.key = static_cast<WSKeyEvent&>(message).key();
+ gui_event.key.alt = static_cast<WSKeyEvent&>(message).alt();
+ gui_event.key.ctrl = static_cast<WSKeyEvent&>(message).ctrl();
+ gui_event.key.shift = static_cast<WSKeyEvent&>(message).shift();
+ break;
case WSMessage::WM_ClientFinishedPaint:
WSWindowManager::the().invalidate(*this, static_cast<WSClientFinishedPaintMessage&>(message).rect());
return;