});
},
shortcutPressed: function(shortcut, object) {
- if (shortcut.action) return shortcut.action(object.element, shortcut, object.type, object.options);
+ if (shortcut.action) return shortcut.action(object.element, shortcut, object.type, object.options || {});
},
onNewShortcut: function(f) {
this.onNewShortcutCallbacks.push(f);
},
expand: function() {
console.log("Expand not implemented"); // TODO
- this.model.toggleCollapsed(); // TODO: Display change
+ //this.model.toggleCollapsed(); // TODO: Display change not showing, this is bug
return false;
},
zoomIn: function() {
},
moveTo: function(loc, options) {
loc = _.defaults({}, loc, { parent: this.model.getParent(this.model.collection), index: this.model.getParent(this.model.collection).findChild(this.model.id) });
- options = _.defaults({}, options, {
+ options = _.defaults({}, options, {
keyboard: false, // Whether the action was done with keyboard vs mouse (affects UI focus)
});
console.log("Move not implemented");
el: $("#todo-app"),
shortcutObject: "global",
events: {
- 'Shortcut("toggleShortcuts", "Keyboard Shortcuts", "ctrl+?") > .text': 'toggleShortcuts',
+ 'Shortcut("toggleShortcuts", "Keyboard Shortcuts", "ctrl+shift+/") > .text': 'toggleShortcuts',
'Shortcut("toggleShowCompleted", "Not Done - Show/hide completed", "ctrl+o") > .text': 'toggleShowCompleted',
'Shortcut("search", "Not Done - Search", "esc") > .text': 'search',
},
});
},
shortcutPressed: function(shortcut, object) {
- if (shortcut.action) return shortcut.action(object.element, shortcut, object.type, object.options);
+ if (shortcut.action) return shortcut.action(object.element, shortcut, object.type, object.options || {});
},
onNewShortcut: function(f) {
this.onNewShortcutCallbacks.push(f);
},
expand: function() {
console.log("Expand not implemented"); // TODO
- this.model.toggleCollapsed(); // TODO: Display change
+ //this.model.toggleCollapsed(); // TODO: Display change not showing, this is bug
return false;
},
zoomIn: function() {
},
moveTo: function(loc, options) {
loc = _.defaults({}, loc, { parent: this.model.getParent(this.model.collection), index: this.model.getParent(this.model.collection).findChild(this.model.id) });
- options = _.defaults({}, options, {
+ options = _.defaults({}, options, {
keyboard: false, // Whether the action was done with keyboard vs mouse (affects UI focus)
});
console.log("Move not implemented");
el: $("#todo-app"),
shortcutObject: "global",
events: {
- 'Shortcut("toggleShortcuts", "Keyboard Shortcuts", "ctrl+?") > .text': 'toggleShortcuts',
+ 'Shortcut("toggleShortcuts", "Keyboard Shortcuts", "ctrl+shift+/") > .text': 'toggleShortcuts',
'Shortcut("toggleShowCompleted", "Not Done - Show/hide completed", "ctrl+o") > .text': 'toggleShowCompleted',
'Shortcut("search", "Not Done - Search", "esc") > .text': 'search',
},
});
},
shortcutPressed: function(shortcut, object) {
- if (shortcut.action) return shortcut.action(object.element, shortcut, object.type, object.options);
+ if (shortcut.action) return shortcut.action(object.element, shortcut, object.type, object.options || {});
},
onNewShortcut: function(f) {
this.onNewShortcutCallbacks.push(f);
el: $("#todo-app"),
shortcutObject: "global",
events: {
- 'Shortcut("toggleShortcuts", "Keyboard Shortcuts", "ctrl+?") > .text': 'toggleShortcuts',
+ 'Shortcut("toggleShortcuts", "Keyboard Shortcuts", "ctrl+shift+/") > .text': 'toggleShortcuts',
'Shortcut("toggleShowCompleted", "Not Done - Show/hide completed", "ctrl+o") > .text': 'toggleShowCompleted',
'Shortcut("search", "Not Done - Search", "esc") > .text': 'search',
},
},
expand: function() {
console.log("Expand not implemented"); // TODO
- this.model.toggleCollapsed(); // TODO: Display change
+ //this.model.toggleCollapsed(); // TODO: Display change not showing, this is bug
return false;
},
zoomIn: function() {
},
moveTo: function(loc, options) {
loc = _.defaults({}, loc, { parent: this.model.getParent(this.model.collection), index: this.model.getParent(this.model.collection).findChild(this.model.id) });
- options = _.defaults({}, options, {
+ options = _.defaults({}, options, {
keyboard: false, // Whether the action was done with keyboard vs mouse (affects UI focus)
});
console.log("Move not implemented");