Commit f9e2e91b authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Let escape key close pushed dialog layers

parent 31efdd66
Pipeline #102202 passed with stage
in 52 seconds
......@@ -371,6 +371,7 @@ T.Control {
}
});
}
item.Keys.escapePressed.connect(function() { item.closeDialog() });
return item;
}
......
......@@ -108,6 +108,7 @@ Item {
const window = windowComponent.createObject(swipeNavigatorRoot, windowProperties);
item = window.pageStack.push(page, properties);
}
item.Keys.escapePressed.connect(function() { item.closeDialog() });
return item;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment