How to assign a new ascii key code value
<p>If the user press <code>enter</code> key, it should behave as he is pressing the <code>esc</code> key.</p>

<pre><code>function OnEditorKeyPress(editor, e) {
    if (e.htmlEvent.keyCode == 13) {
        e.htmlEvent.keyCode = 27;
        //treeList.CancelEdit();
    }
}
</code></pre>

<p>But the value 13 remains same after <code>e.htmlEvent.keyCode = 27;</code> this statement also. How to assign a new value or any other alternative method is there to do this?</p>
