var undelegateEvents = View.undelegateEvents;
var ShortcutRegex = /^Shortcut\("([^")]*)", ?"([^")]*)", ?"([^")]*)"\) (.*)$/;
function delegate(id, description, defaultKeybinding, objectType, callback){
- if (typeof(defaultKeybinding) !== 'string' && defaultKeybinding.split) defaultKeybinding = defaultKeybinding.split(',');
+ if (typeof(defaultKeybinding) === 'string' && defaultKeybinding.split) defaultKeybinding = defaultKeybinding.split(',');
var shortcut = Shortcut.registerShortcut({
id: id,
description: description,
- keybinding: defaultKeybinding, // TODO: Add support for rebinding
+ keybinding: defaultKeybinding, // TODO: Add support for rebinding (load from database)
object: objectType,
action: callback
});
'Shortcut("zoomIn", "Not Done - Zoom in", "alt+right") > .text': 'zoomIn',
'Shortcut("zoomOut", "Not Done - Zoom out", "alt+left") > .text': 'zoomOut',
'Shortcut("expand", "Not Done - Expand / collapse", "ctrl+space") > .text': 'expand',
- //'Shortcut("indent", "Not Done - Indent", "tab,alt+shift+right") > .text': 'indent',
- 'Shortcut("indent", "Not Done - Indent", "tab") > .text': 'indent',
+ 'Shortcut("indent", "Not Done - Indent", "tab,alt+shift+right") > .text': 'indent',
'Shortcut("outdent", "Not Done - Outdent", "shift+tab,alt+shift+left") > .text': 'outdent',
'Shortcut("moveDown", "Not Done - Move", "alt+shift+down") > .text': 'moveDown',
'Shortcut("moveUp", "Not Done - Move", "alt+shift+up") > .text': 'moveUp',
var undelegateEvents = View.undelegateEvents;
var ShortcutRegex = /^Shortcut\("([^")]*)", ?"([^")]*)", ?"([^")]*)"\) (.*)$/;
function delegate(id, description, defaultKeybinding, objectType, callback){
- if (typeof(defaultKeybinding) !== 'string' && defaultKeybinding.split) defaultKeybinding = defaultKeybinding.split(',');
+ if (typeof(defaultKeybinding) === 'string' && defaultKeybinding.split) defaultKeybinding = defaultKeybinding.split(',');
var shortcut = Shortcut.registerShortcut({
id: id,
description: description,
- keybinding: defaultKeybinding, // TODO: Add support for rebinding
+ keybinding: defaultKeybinding, // TODO: Add support for rebinding (load from database)
object: objectType,
action: callback
});
'Shortcut("zoomIn", "Not Done - Zoom in", "alt+right") > .text': 'zoomIn',
'Shortcut("zoomOut", "Not Done - Zoom out", "alt+left") > .text': 'zoomOut',
'Shortcut("expand", "Not Done - Expand / collapse", "ctrl+space") > .text': 'expand',
- //'Shortcut("indent", "Not Done - Indent", "tab,alt+shift+right") > .text': 'indent',
- 'Shortcut("indent", "Not Done - Indent", "tab") > .text': 'indent',
+ 'Shortcut("indent", "Not Done - Indent", "tab,alt+shift+right") > .text': 'indent',
'Shortcut("outdent", "Not Done - Outdent", "shift+tab,alt+shift+left") > .text': 'outdent',
'Shortcut("moveDown", "Not Done - Move", "alt+shift+down") > .text': 'moveDown',
'Shortcut("moveUp", "Not Done - Move", "alt+shift+up") > .text': 'moveUp',
var undelegateEvents = View.undelegateEvents;
var ShortcutRegex = /^Shortcut\("([^")]*)", ?"([^")]*)", ?"([^")]*)"\) (.*)$/;
function delegate(id, description, defaultKeybinding, objectType, callback){
- if (typeof(defaultKeybinding) !== 'string' && defaultKeybinding.split) defaultKeybinding = defaultKeybinding.split(',');
+ if (typeof(defaultKeybinding) === 'string' && defaultKeybinding.split) defaultKeybinding = defaultKeybinding.split(',');
var shortcut = Shortcut.registerShortcut({
id: id,
description: description,
- keybinding: defaultKeybinding, // TODO: Add support for rebinding
+ keybinding: defaultKeybinding, // TODO: Add support for rebinding (load from database)
object: objectType,
action: callback
});
'Shortcut("zoomIn", "Not Done - Zoom in", "alt+right") > .text': 'zoomIn',
'Shortcut("zoomOut", "Not Done - Zoom out", "alt+left") > .text': 'zoomOut',
'Shortcut("expand", "Not Done - Expand / collapse", "ctrl+space") > .text': 'expand',
- //'Shortcut("indent", "Not Done - Indent", "tab,alt+shift+right") > .text': 'indent',
- 'Shortcut("indent", "Not Done - Indent", "tab") > .text': 'indent',
+ 'Shortcut("indent", "Not Done - Indent", "tab,alt+shift+right") > .text': 'indent',
'Shortcut("outdent", "Not Done - Outdent", "shift+tab,alt+shift+left") > .text': 'outdent',
'Shortcut("moveDown", "Not Done - Move", "alt+shift+down") > .text': 'moveDown',
'Shortcut("moveUp", "Not Done - Move", "alt+shift+up") > .text': 'moveUp',