(from Yitzhak) ALT-?
This patch allows ALT-? to do #? in NetHack mode by not doing TranslateAccelerator in NetHack mode. This relies on the short circuit logic of || (much of NetHack code relies on it, it's just an explanatory note).
This commit is contained in:
@@ -1702,7 +1702,9 @@ void mswin_main_loop()
|
||||
|
||||
while( !mswin_have_input() &&
|
||||
GetMessage(&msg, NULL, 0, 0)!=0 ) {
|
||||
if (!TranslateAccelerator(msg.hwnd, GetNHApp()->hAccelTable, &msg)) {
|
||||
if (GetNHApp()->regNetHackMode ||
|
||||
!TranslateAccelerator(msg.hwnd, GetNHApp()->hAccelTable, &msg))
|
||||
{
|
||||
TranslateMessage(&msg);
|
||||
DispatchMessage(&msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user