mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 18:35:09 +00:00
LibGUI: Close and cancel GDialog on escape
This is a small usability enhancement. If you press escape with a GDialog focused, it will now return its "Cancel" status.
This commit is contained in:
parent
8602fa5b49
commit
3d59db4be4
2 changed files with 16 additions and 0 deletions
|
@ -19,6 +19,8 @@ public:
|
|||
int result() const { return m_result; }
|
||||
void done(int result);
|
||||
|
||||
virtual void event(CEvent&) override;
|
||||
|
||||
virtual void close() override;
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue