mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 02:09:54 +08:00
FIX: Don't trigger browser keyboard events when d-editor intercepts
This commit is contained in:
parent
3939331dec
commit
d993f70ed3
|
@ -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;
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user