Examples: DirectX examples uses WM_KEYDOWN/WM_KEYUP

Fixes pressing Enter in IME being caught by application right after
validating an IME input.
This commit is contained in:
ocornut
2015-03-06 21:39:50 +00:00
parent 315e9941f0
commit be9fe9489c
5 changed files with 31 additions and 23 deletions

View File

@ -244,7 +244,7 @@ void LoadFontsTexture()
//ImFont* my_font2 = io.Fonts->AddFontFromFileTTF("extra_fonts/Karla-Regular.ttf", 15.0f);
//ImFont* my_font3 = io.Fonts->AddFontFromFileTTF("extra_fonts/ProggyClean.ttf", 13.0f); my_font3->DisplayOffset.y += 1;
//ImFont* my_font4 = io.Fonts->AddFontFromFileTTF("extra_fonts/ProggyTiny.ttf", 10.0f); my_font4->DisplayOffset.y += 1;
//ImFont* my_font5 = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 20.0f, io.Fonts->GetGlyphRangesJapanese());
//ImFont* my_font5 = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, io.Fonts->GetGlyphRangesJapanese());
unsigned char* pixels;
int width, height;