From d33cfa55a5d4044357d08ce09a20bb84be6fffaf Mon Sep 17 00:00:00 2001 From: adelikat Date: Tue, 12 May 2009 16:35:22 +0000 Subject: [PATCH] Win32 - RamWatch - hooked up accel table --- desmume/src/windows/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index dd4596b6b..f354f0b20 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -985,6 +985,13 @@ void CheckMessages() { if( GetMessage( &msg, 0, 0, 0)>0 ) { + if (RamWatchHWnd && IsDialogMessage(RamWatchHWnd, &msg)) + { + if(msg.message == WM_KEYDOWN) // send keydown messages to the dialog (for accelerators, and also needed for the Alt key to work) + SendMessage(RamWatchHWnd, msg.message, msg.wParam, msg.lParam); + continue; + } + if(!TranslateAccelerator(hwnd,hAccel,&msg)) { TranslateMessage(&msg);