Skip to content

Commit

Permalink
Filter Alt-X menu hotkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidKinder committed Feb 27, 2011
1 parent e35ef93 commit 8835cd7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Win/FrotzFrameWnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,15 @@ static UINT Indicators[] =
ID_INDICATOR_NUM
};

bool FilterHotkeys(char c)
{
return (strchr("DHNPRSUX",c) == NULL);
}

FrotzFrameWnd::FrotzFrameWnd() : m_clientWnd(NULL), m_codePage(CP_ACP)
{
m_menuBar.SetUseF10(false);
m_menuBar.SetUseAltX(false);
m_menuBar.SetFilterAltX(FilterHotkeys);
}

FrotzFrameWnd::~FrotzFrameWnd()
Expand Down

0 comments on commit 8835cd7

Please sign in to comment.