diff --git a/Userland/Libraries/LibGUI/EmojiInputDialog.cpp b/Userland/Libraries/LibGUI/EmojiInputDialog.cpp index e43168517c4..bb441808e57 100644 --- a/Userland/Libraries/LibGUI/EmojiInputDialog.cpp +++ b/Userland/Libraries/LibGUI/EmojiInputDialog.cpp @@ -92,6 +92,11 @@ EmojiInputDialog::EmojiInputDialog(Window* parent_window) } } } + + on_active_window_change = [this](bool is_active_window) { + if (!is_active_window) + close(); + }; } void EmojiInputDialog::event(Core::Event& event)