This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <unordered_map> | |
int main() | |
{ | |
std::string name; | |
std::unordered_map<int,int> mymap; | |
mymap.insert(std::make_pair<int,int>(1229,1)); | |
mymap.insert(std::make_pair<int,int>(8,0)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r cd645c82db8b -r 7384a4f0d802 windows/window.c | |
--- a/windows/window.c Thu Oct 23 16:17:24 2014 +0900 | |
+++ b/windows/window.c Wed Sep 09 16:49:18 2015 +0900 | |
@@ -3509,6 +3509,14 @@ | |
* WARNING: Spans over multiple CASEs | |
*/ | |
case WM_KEYDOWN: | |
+ if (wParam == VK_ESCAPE) { | |
+ HIMC hImc = ImmGetContext(hwnd); | |
+ if (ImmGetOpenStatus(hImc)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// if press ESC, change mode to ENG | |
... | |
if (msg.message == WM_KEYDOWN || msg.message == WM_SYSKEYDOWN) | |
{ | |
vk = (int) msg.wParam; | |
if (vk == VK_ESCAPE) { | |
HIMC hImc = ImmGetContext(s_hwnd); | |
if (ImmGetOpenStatus(hImc)) { | |
ImmSetConversionStatus(hImc, IME_CMODE_ALPHANUMERIC, IME_SMODE_NONE); | |
ImmReleaseContext(s_hwnd, hImc); |