diff --git a/apps/common/main/lib/view/SearchPanel.js b/apps/common/main/lib/view/SearchPanel.js index a9836fa94..d0170ce25 100644 --- a/apps/common/main/lib/view/SearchPanel.js +++ b/apps/common/main/lib/view/SearchPanel.js @@ -91,6 +91,11 @@ define([ dataHintDirection: 'left', dataHintOffset: 'small' }); + this.inputReplace._input.on('keydown', _.bind(function (e) { + if (e.keyCode === Common.UI.Keys.RETURN && !this.btnReplace.isDisabled()) { + this.onReplaceClick('replace'); + } + }, this)); this.btnBack = new Common.UI.Button({ parentEl: $('#search-adv-back'),