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
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -44,6 +44,10 @@ Ext.define('Docs.view.comments.List', {

    afterRender: function() {
        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.vote(el, r, "up");
        }, this);