(svn r20074) -Fix (r20065): highscore window should use the same hotkey for quit as the toolbar

This commit is contained in:
yexo
2010-07-04 11:28:16 +00:00
parent 19f86951d9
commit 063909962a
3 changed files with 19 additions and 5 deletions

View File

@@ -467,6 +467,17 @@ Hotkey<MainWindow> MainWindow::global_hotkeys[] = {
};
Hotkey<MainWindow> *_global_hotkeys = MainWindow::global_hotkeys;
/**
* Does the given keycode match one of the keycodes bound to 'quit game'?
* @param keycode The keycode that was pressed by the user.
* @return True iff the keycode matches one of the hotkeys for 'quit'.
*/
bool IsQuitKey(uint16 keycode)
{
int num = CheckHotkeyMatch<MainWindow>(_global_hotkeys, keycode, NULL);
return num == GHK_QUIT;
}
void ShowSelectGameWindow();