Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/core/KeyboardShortcut.js
| Show All 14 Lines | JX.install('KeyboardShortcut', { | ||||
| construct : function(keys, description) { | construct : function(keys, description) { | ||||
| keys = JX.$AX(keys); | keys = JX.$AX(keys); | ||||
| this.setKeys(keys); | this.setKeys(keys); | ||||
| this.setDescription(description); | this.setDescription(description); | ||||
| }, | }, | ||||
| properties : { | properties : { | ||||
| keys : null, | keys : null, | ||||
| group: null, | |||||
| description : null, | description : null, | ||||
| handler : null, | handler : null, | ||||
| tooltipHandler : null | tooltipHandler : null | ||||
| }, | }, | ||||
| members : { | members : { | ||||
| register : function() { | register : function() { | ||||
| JX.KeyboardShortcutManager.getInstance().addKeyboardShortcut(this); | JX.KeyboardShortcutManager.getInstance().addKeyboardShortcut(this); | ||||
| return this; | return this; | ||||
| } | } | ||||
| } | } | ||||
| }); | }); | ||||