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

@ -3289,7 +3289,7 @@ void ImGui::PushStyleVar(ImGuiStyleVar idx, const ImVec2& val)
ImGuiState& g = *GImGui;
ImVec2* pvar = GetStyleVarVec2Addr(idx);
IM_ASSERT(pvar != NULL); // Called function with wrong-type? Varialble is not a ImVec2.
IM_ASSERT(pvar != NULL); // Called function with wrong-type? Variable is not a ImVec2.
ImGuiStyleMod backup;
backup.Var = idx;
backup.PreviousValue = *pvar;