1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:07:47 +00:00

LibGUI: Add and use TextEditor::hide_autocomplete()

There were cases where the autocomplete box was being hidden but the
autocomplete timer wasn't being cancelled.
This commit is contained in:
thislooksfun 2021-10-28 20:23:58 -05:00 committed by Andreas Kling
parent 81f00c0aa8
commit 352f593958
2 changed files with 14 additions and 7 deletions

View file

@ -282,6 +282,7 @@ private:
void try_update_autocomplete(Function<void()> callback = {});
void force_update_autocomplete(Function<void()> callback = {});
void hide_autocomplete_if_needed();
void hide_autocomplete();
int icon_size() const { return 16; }
int icon_padding() const { return 2; }