From d993f70ed3cb725b13dc5d799df5aae166211368 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 13 Nov 2015 12:31:55 -0500 Subject: [PATCH] FIX: Don't trigger browser keyboard events when d-editor intercepts --- app/assets/javascripts/discourse/components/d-editor.js.es6 | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/discourse/components/d-editor.js.es6 b/app/assets/javascripts/discourse/components/d-editor.js.es6 index 75c21fdf685..19549b3db8b 100644 --- a/app/assets/javascripts/discourse/components/d-editor.js.es6 +++ b/app/assets/javascripts/discourse/components/d-editor.js.es6 @@ -169,6 +169,7 @@ export default Ember.Component.extend({ const button = shortcuts[sc]; Mousetrap(this.$('.d-editor-input')[0]).bind(sc, () => { this.send(button.action, button); + return false; }); });