Allow escape to close the demos project's launcher

This commit is contained in:
baldurk
2019-04-30 10:31:17 +01:00
parent 4d7e8d879a
commit f2987cd30e
+5
View File
@@ -57,6 +57,11 @@ static LRESULT CALLBACK NuklearWndProc(HWND wnd, UINT msg, WPARAM wparam, LPARAM
PostQuitMessage(0);
return 0;
}
if(msg == WM_KEYDOWN && wparam == VK_ESCAPE)
{
PostQuitMessage(0);
return 0;
}
if(nk_gdi_handle_event(wnd, msg, wparam, lparam))
return 0;