main menu: fix control+w shortcut

This commit is contained in:
rolux 2013-07-15 15:22:11 +00:00
parent 79791026b7
commit 73ee17d1e5

View file

@ -509,11 +509,17 @@ pandora.ui.mainMenu = function() {
},
key_control_w: function() {
if (!pandora.hasDialogOrScreen()) {
if (ui.section == 'items') {
if (ui.item) {
pandora.UI.set({item: ''});
} else if (ui._list) {
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() {