LibGUI: Close EmojiDialog on active window change

This patch makes EmojiDialog be closed whenever the focus moves away
from it just like the CommandPalette.
This commit is contained in:
Olivier De Cannière 2022-06-07 18:16:21 +02:00 committed by Brian Gianforcaro
parent 2a7b3ca4b8
commit dbad617351
Notes: sideshowbarker 2024-07-17 22:55:25 +09:00

View file

@ -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)