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);