From: Mikko Rasa Date: Fri, 19 Dec 2014 01:55:38 +0000 (+0200) Subject: Generate and handle WM_CHAR messages on Windows X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=f438f4d467fa96e1b484f70e25dc1d6389170393;p=libs%2Fgui.git Generate and handle WM_CHAR messages on Windows --- diff --git a/source/graphics/windows/display.cpp b/source/graphics/windows/display.cpp index 428abcc..fdae09e 100644 --- a/source/graphics/windows/display.cpp +++ b/source/graphics/windows/display.cpp @@ -95,6 +95,7 @@ bool Display::process_events() MSG msg; if(PeekMessage(&msg, 0, 0, 0, PM_REMOVE)) { + TranslateMessage(&msg); DispatchMessage(&msg); return true; } diff --git a/source/graphics/windows/window.cpp b/source/graphics/windows/window.cpp index 2af6b83..2d4d75b 100644 --- a/source/graphics/windows/window.cpp +++ b/source/graphics/windows/window.cpp @@ -162,6 +162,7 @@ bool Window::event(const Event &evnt) { case WM_KEYDOWN: case WM_KEYUP: + case WM_CHAR: case WM_LBUTTONDOWN: case WM_LBUTTONUP: case WM_MBUTTONDOWN: