dialog: prevent key events from being transmitted to parent
This commit is contained in:
@@ -74,3 +74,9 @@ void Dialog::onCancel()
|
||||
{
|
||||
deleteLater();
|
||||
}
|
||||
|
||||
void Dialog::onEvent(event_t event)
|
||||
{
|
||||
// block key events
|
||||
(void)event;
|
||||
}
|
||||
|
||||
+1
@@ -53,4 +53,5 @@ class Dialog : public ModalWindow
|
||||
DialogWindowContent* content;
|
||||
|
||||
void onCancel() override;
|
||||
void onEvent(event_t event) override;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user