main menu: fix control+w shortcut
This commit is contained in:
parent
79791026b7
commit
73ee17d1e5
1 changed files with 10 additions and 4 deletions
|
@ -509,11 +509,17 @@ pandora.ui.mainMenu = function() {
|
||||||
},
|
},
|
||||||
key_control_w: function() {
|
key_control_w: function() {
|
||||||
if (!pandora.hasDialogOrScreen()) {
|
if (!pandora.hasDialogOrScreen()) {
|
||||||
|
if (ui.section == 'items') {
|
||||||
if (ui.item) {
|
if (ui.item) {
|
||||||
pandora.UI.set({item: ''});
|
pandora.UI.set({item: ''});
|
||||||
} else if (ui._list) {
|
} else if (ui._list) {
|
||||||
pandora.UI.set({find: {conditions: [], operator: '&'}});
|
pandora.UI.set({find: {conditions: [], operator: '&'}});
|
||||||
}
|
}
|
||||||
|
} else if (ui.section == 'edits') {
|
||||||
|
pandora.UI.set({edit: ''});
|
||||||
|
} else if (ui.section == 'texts') {
|
||||||
|
pandora.UI.set({text: ''});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
key_shift_a: function() {
|
key_shift_a: function() {
|
||||||
|
|
Loading…
Reference in a new issue