Windows CTRL + C Hotkey

This commit is contained in:
Ade Novan
2017-07-02 01:28:38 +08:00
committed by Gde Made Novan Priambhada
parent 5187b9f118
commit f514b25c79
7 changed files with 41 additions and 14 deletions
+6 -1
View File
@@ -344,6 +344,7 @@ namespace MainWindow {
TranslateMenuItem(menu, ID_OPTIONS_SHOWFPS);
TranslateMenuItem(menu, ID_EMULATION_SOUND);
TranslateMenuItem(menu, ID_EMULATION_CHEATS, L"\tCtrl+T");
TranslateMenuItem(menu, ID_EMULATION_CHAT, L"\tCtrl+C");
// Help menu: it's translated in CreateHelpMenu.
CreateHelpMenu(menu);
@@ -648,7 +649,11 @@ namespace MainWindow {
g_Config.bEnableCheats = !g_Config.bEnableCheats;
osm.ShowOnOff(gr->T("Cheats"), g_Config.bEnableCheats);
break;
case ID_EMULATION_CHAT:
if (GetUIState() == UISTATE_INGAME) {
NativeMessageReceived("chat screen", "");
}
break;
case ID_FILE_LOADSTATEFILE:
if (W32Util::BrowseForFileName(true, hWnd, L"Load state", 0, L"Save States (*.ppst)\0*.ppst\0All files\0*.*\0\0", L"ppst", fn)) {
SetCursor(LoadCursor(0, IDC_WAIT));