if(event.ctrlKey) code = code | 0x200;
if(event.shiftKey) code = code | 0x400;
- if(this.hotkeys[code] !== null) {
+ $.log(event.character, this.hotkeys[code]);
+
+ if(this.hotkeys[code]) {
return true;
}
return false;
this.fileOptions = this.options;
var self = this;
+
+ if(!this.options.recentFiles)
+ this.options.recentFiles = [];
+
$.each(this.options.recentFiles, function(index) {
if (fileId == self.options.recentFiles[index].fileId) {
$.log('Found options for', fileId);
if(self.autosaveTimer) {
clearTimeout(self.autosaveTimer);
}
- if (data.warnings === null) {
+ if (data.warnings === null || data.warning === undefined) {
self.showPopup('save-successful');
} else {
self.showPopup('save-warn', data.warnings[0]);