Skip to content

Commit

Permalink
Merge pull request ddnet#7635 from archimede67/fix-escape-key-lineinput
Browse files Browse the repository at this point in the history
Fix escape key not working when lineinput is focused
  • Loading branch information
edg-l authored Dec 12, 2023
2 parents 3cb510a + 0aca090 commit 082c448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/client/ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ bool CUI::DoEditBox(CLineInput *pLineInput, const CUIRect *pRect, float FontSize
pRect->Draw(ms_LightButtonColorFunction.GetColor(Active, HotItem() == pLineInput), Corners, 3.0f);
ClipEnable(pRect);
Textbox.x -= ScrollOffset;
const STextBoundingBox BoundingBox = pLineInput->Render(&Textbox, FontSize, TEXTALIGN_ML, Changed, -1.0f, 0.0f);
const STextBoundingBox BoundingBox = pLineInput->Render(&Textbox, FontSize, TEXTALIGN_ML, pLineInput->WasCursorChanged(), -1.0f, 0.0f);
ClipDisable();

// Scroll left or right if necessary
Expand Down

0 comments on commit 082c448

Please sign in to comment.