From 3648d379c69af6d2c470bd6991128bd61fb0c2d6 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 25 Aug 2014 22:06:40 -0400 Subject: [PATCH] Moved the IsDialogMessage under notkey to be safe. --- redo/uitask_windows.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/redo/uitask_windows.c b/redo/uitask_windows.c index e38a62f..193b24f 100644 --- a/redo/uitask_windows.c +++ b/redo/uitask_windows.c @@ -29,10 +29,9 @@ void uimsgloop_area(HWND active, HWND focus, MSG *msg) // don't call TranslateMessage(); we do our own keyboard handling if (DispatchMessage(©) != FALSE) return; - // TODO move this under notkey? +notkey: if (IsDialogMessage(active, msg) != 0) return; -notkey: DispatchMessage(msg); }