diff --git a/webapp/controller/App.controller.js b/webapp/controller/App.controller.js index b8ed5d0cc..4f4be48d3 100644 --- a/webapp/controller/App.controller.js +++ b/webapp/controller/App.controller.js @@ -38,7 +38,7 @@ sap.ui.define([ /** * Removes all completed items from the todo list. */ - clearCompleted() { + onClearCompleted() { const oModel = this.getView().getModel(); const aTodos = oModel.getProperty("/todos").map((oTodo) => Object.assign({}, oTodo)); diff --git a/webapp/manifest.json b/webapp/manifest.json index 1f6c7739a..224d30755 100644 --- a/webapp/manifest.json +++ b/webapp/manifest.json @@ -5,6 +5,11 @@ "type": "application" }, "sap.ui5": { + "commands": { + "Clear": { + "shortcut": "Ctrl+Y" + } + }, "dependencies": { "minUI5Version": "1.121.0", "libs": { diff --git a/webapp/view/App.view.xml b/webapp/view/App.view.xml index 9edb53710..e72a8ceb4 100644 --- a/webapp/view/App.view.xml +++ b/webapp/view/App.view.xml @@ -1,6 +1,9 @@ + + + @@ -31,7 +34,7 @@ -