Skip to content

Commit

Permalink
Enter executes function
Browse files Browse the repository at this point in the history
  • Loading branch information
maximegmd committed Dec 18, 2020
1 parent 941778b commit d756f27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/overlay/Overlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ LRESULT APIENTRY WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
break;
}

if(s_pOverlay->IsEnabled() && uMsg != WM_PAINT && uMsg != WM_ACTIVATE && uMsg != WM_QUIT && uMsg != WM_CLOSE)
if(s_pOverlay->IsEnabled() && uMsg != WM_PAINT && uMsg != WM_ACTIVATE && uMsg != WM_QUIT && uMsg != WM_CLOSE && uMsg != WM_DESTROY)
{
return true;
}
Expand Down Expand Up @@ -247,8 +247,8 @@ void Overlay::Render(IDXGISwapChain3* pSwapChain)
static std::vector<std::string> s_consoleResult;
static char command[512] = { 0 };

ImGui::InputText("Console", command, std::size(command));
if (ImGui::Button("Execute"))
auto execute = ImGui::InputText("Console", command, std::size(command), ImGuiInputTextFlags_EnterReturnsTrue);
if (ImGui::Button("Execute") || execute)
{
Result result;

Expand Down

0 comments on commit d756f27

Please sign in to comment.