diff --git a/assets/javascripts/wizard-custom.js b/assets/javascripts/wizard-custom.js index 0dd67833..ee67b388 100644 --- a/assets/javascripts/wizard-custom.js +++ b/assets/javascripts/wizard-custom.js @@ -20,6 +20,7 @@ //= require discourse-common/addon/lib/icon-library //= require discourse-common/addon/lib/attribute-hook //= require discourse-common/addon/lib/dom-from-string +//= require discourse-common/addon/lib/later //= require_tree_discourse discourse-common/addon/utils //= require_tree_discourse select-kit/addon diff --git a/assets/javascripts/wizard/components/wizard-step.js.es6 b/assets/javascripts/wizard/components/wizard-step.js.es6 index cc23c5bf..44b388bb 100644 --- a/assets/javascripts/wizard/components/wizard-step.js.es6 +++ b/assets/javascripts/wizard/components/wizard-step.js.es6 @@ -90,16 +90,6 @@ export default Component.extend({ this.showMessage(message); }, - keyPress(event) { - if (event.key === "Enter") { - if (this.showDoneButton) { - this.send("quit"); - } else { - this.send("nextStep"); - } - } - }, - @discourseComputed("step.index", "wizard.totalSteps") barStyle(displayIndex, totalSteps) { let ratio = parseFloat(displayIndex) / parseFloat(totalSteps - 1);