Skip to content
Snippets Groups Projects
Commit ee92d2a0 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Fix a problem with SPACE key not working in comment editor.

parent 18d7c0a2
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,10 @@ Ext.define('Docs.view.comments.List', { ...@@ -44,6 +44,10 @@ Ext.define('Docs.view.comments.List', {
afterRender: function() { afterRender: function() {
this.callParent(arguments); this.callParent(arguments);
// Remove the keydown handler set up in Ext.view.View#afterRender
// which prevents CodeMirror from receiving the event when the SPACE key is pressed.
this.mun(this.getTargetEl(), "keydown");
this.delegateClick("a.voteCommentUp", function(el, r) { this.delegateClick("a.voteCommentUp", function(el, r) {
this.vote(el, r, "up"); this.vote(el, r, "up");
}, this); }, this);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment