use bindKeyboard in menu
This commit is contained in:
parent
cb73c25301
commit
0db157e669
1 changed files with 25 additions and 1 deletions
|
@ -135,7 +135,7 @@ pandora.ui.mainMenu = function() {
|
||||||
{ id: 'tour', title: 'Manage Tour...', disabled: !isAdmin }*/
|
{ id: 'tour', title: 'Manage Tour...', disabled: !isAdmin }*/
|
||||||
] },
|
] },
|
||||||
{ id: 'helpMenu', title: 'Help', items: [
|
{ id: 'helpMenu', title: 'Help', items: [
|
||||||
{ id: 'help', title: pandora.site.site.name + ' Help', keyboard: 'shift ?' }
|
{ id: 'help', title: pandora.site.site.name + ' Help', keyboard: 'control ?' }
|
||||||
] }
|
] }
|
||||||
],
|
],
|
||||||
pandora.site.capabilities.canSeeDebugMenu[pandora.user.level]
|
pandora.site.capabilities.canSeeDebugMenu[pandora.user.level]
|
||||||
|
@ -150,6 +150,7 @@ pandora.ui.mainMenu = function() {
|
||||||
: []
|
: []
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
.bindKeyboard()
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
change: function(data) {
|
change: function(data) {
|
||||||
var value = data.checked[0] ? data.checked[0].id : null;
|
var value = data.checked[0] ? data.checked[0].id : null;
|
||||||
|
@ -269,6 +270,29 @@ pandora.ui.mainMenu = function() {
|
||||||
that.setItemTitle('debug', (localStorage.debug ? 'Disable' : 'Enable') + ' Debug Mode');
|
that.setItemTitle('debug', (localStorage.debug ? 'Disable' : 'Enable') + ' Debug Mode');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
key_control_f: function() {
|
||||||
|
if ($('.OxDialog').length == 0 && $('.OxScreen').length == 0) {
|
||||||
|
pandora.$ui.findInput.focusInput(true);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
key_control_slash: function() {
|
||||||
|
pandora.URL.push('/help');
|
||||||
|
},
|
||||||
|
key_shift_a: function() {
|
||||||
|
pandora.UI.set({showAnnotations: !ui.showAnnotations});
|
||||||
|
},
|
||||||
|
key_shift_b: function() {
|
||||||
|
pandora.UI.set({showBrowser: !ui.showBrowser});
|
||||||
|
},
|
||||||
|
key_shift_g: function() {
|
||||||
|
pandora.UI.set({showGroups: !ui.showGroups});
|
||||||
|
},
|
||||||
|
key_shift_i: function() {
|
||||||
|
pandora.UI.set({showInfo: !ui.showInfo});
|
||||||
|
},
|
||||||
|
key_shift_s: function() {
|
||||||
|
pandora.UI.set({showSidebar: !ui.showSidebar});
|
||||||
|
},
|
||||||
pandora_find: function() {
|
pandora_find: function() {
|
||||||
var action = ui._list
|
var action = ui._list
|
||||||
&& pandora.getListData(ui._list).user == pandora.user.username
|
&& pandora.getListData(ui._list).user == pandora.user.username
|
||||||
|
|
Loading…
Reference in a new issue