]> granicus.if.org Git - nethack/commit
(from Yitzhak) ALT-H
authornethack.allison <nethack.allison>
Sun, 17 Mar 2002 17:03:45 +0000 (17:03 +0000)
committernethack.allison <nethack.allison>
Sun, 17 Mar 2002 17:03:45 +0000 (17:03 +0000)
commit855e6eef880ff0ca6e376a1cb15e4915e1c50214
tree059deba4202a8e50fe402eed3f3fbf1bf51c37a5
parent678debd7a063bdc8828cdd314127c1e6871160e2
(from Yitzhak) ALT-H
This patch disables ALT-H in NetHack mode.  Before patch: ALT-H in NetHack
mode brings down the Help menu in the menu bar.  After patch: ALT-H does
nothing in NetHack mode.  In both cases, in Windows mode, ALT-H brings
down the Help menu in the menu bar.   I can easily write a patch to have
ALT-H in NetHack mode act the same as '?'.

Explanation:
return 0: this window proc has processed this event.
return DefWindowProc(): process using default window proc.

ALT-H is the only key for which DefWindowProc() does something special AND
reaches the else.
win/win32/mhmain.c