mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:27:43 +00:00
LibGUI: Remove redundant event handling in EmojiInputDialog
The Dialog class already handles closing on escape.
This commit is contained in:
parent
a6581c2aac
commit
2028fbeae3
2 changed files with 0 additions and 14 deletions
|
@ -19,7 +19,6 @@
|
|||
#include <LibGUI/Button.h>
|
||||
#include <LibGUI/EmojiInputDialog.h>
|
||||
#include <LibGUI/EmojiInputDialogGML.h>
|
||||
#include <LibGUI/Event.h>
|
||||
#include <LibGUI/Frame.h>
|
||||
#include <LibGUI/ScrollableContainerWidget.h>
|
||||
#include <LibGUI/TextBox.h>
|
||||
|
@ -262,16 +261,4 @@ void EmojiInputDialog::select_first_displayed_emoji()
|
|||
done(ExecResult::OK);
|
||||
}
|
||||
|
||||
void EmojiInputDialog::event(Core::Event& event)
|
||||
{
|
||||
if (event.type() == Event::KeyDown) {
|
||||
auto& key_event = static_cast<KeyEvent&>(event);
|
||||
if (key_event.key() == Key_Escape) {
|
||||
done(ExecResult::Cancel);
|
||||
return;
|
||||
}
|
||||
}
|
||||
Dialog::event(event);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue