dialog: prevent key events from being transmitted to parent

This commit is contained in:
Raphael Coeffic
2022-09-25 09:09:53 +02:00
parent 7682db2fb2
commit 2cb1e6fce7
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -74,3 +74,9 @@ void Dialog::onCancel()
{
deleteLater();
}
void Dialog::onEvent(event_t event)
{
// block key events
(void)event;
}
+1
View File
@@ -53,4 +53,5 @@ class Dialog : public ModalWindow
DialogWindowContent* content;
void onCancel() override;
void onEvent(event_t event) override;
};