]> git.tdb.fi Git - libs/gui.git/commitdiff
Generate and handle WM_CHAR messages on Windows
authorMikko Rasa <tdb@tdb.fi>
Fri, 19 Dec 2014 01:55:38 +0000 (03:55 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 19 Dec 2014 01:55:38 +0000 (03:55 +0200)
source/graphics/windows/display.cpp
source/graphics/windows/window.cpp

index 428abcc248f1f0fa2a613a95588078ace653fa3d..fdae09e362e5abe25c8c29d34a5380d351a6b1ae 100644 (file)
@@ -95,6 +95,7 @@ bool Display::process_events()
        MSG msg;
        if(PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
        {
+               TranslateMessage(&msg);
                DispatchMessage(&msg);
                return true;
        }
index 2af6b83917e153664f8f82220ba56f0849f7e802..2d4d75bead21b6a3f5b6e8208c454379479adcad 100644 (file)
@@ -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: