* @private
*/
_changeListener: function(e) {
- if (e.event.type.indexOf('key') !== -1) {
+ if (e.event && e.event.type.indexOf('key') !== -1) {
// These are the 4 arrow keys.
if ((e.event.keyCode !== 39) &&
(e.event.keyCode !== 37) &&
if (typeof o.responseText !== "undefined" &&
o.responseText !== "" &&
o.responseText !== this.textarea.get('value')) {
- Y.log('Autosave text found - confirm recovery.', 'debug', LOGNAME_AUTOSAVE);
+ Y.log('Autosave text found - recover it.', 'debug', LOGNAME_AUTOSAVE);
this.recoverText(o.responseText);
+ this._fireSelectionChanged();
}
}
}