diff --git a/app/assets/javascripts/discourse/lib/keyboard-shortcuts.js.es6 b/app/assets/javascripts/discourse/lib/keyboard-shortcuts.js.es6 index 6a507050f0a..c170fe5cdfd 100644 --- a/app/assets/javascripts/discourse/lib/keyboard-shortcuts.js.es6 +++ b/app/assets/javascripts/discourse/lib/keyboard-shortcuts.js.es6 @@ -368,14 +368,14 @@ export default { }, _stopCallback() { - const oldStopCallback = this.keyTrapper.stopCallback; + const oldStopCallback = this.keyTrapper.prototype.stopCallback; - this.keyTrapper.stopCallback = function(e, element, combo) { + this.keyTrapper.prototype.stopCallback = function(e, element, combo, sequence) { if ((combo === 'ctrl+f' || combo === 'command+f') && element.id === 'search-term') { return false; } - return oldStopCallback(e, element, combo); + return oldStopCallback(e, element, combo, sequence); }; } };