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,10 +509,16 @@ pandora.ui.mainMenu = function() {
|
||||||
},
|
},
|
||||||
key_control_w: function() {
|
key_control_w: function() {
|
||||||
if (!pandora.hasDialogOrScreen()) {
|
if (!pandora.hasDialogOrScreen()) {
|
||||||
if (ui.item) {
|
if (ui.section == 'items') {
|
||||||
pandora.UI.set({item: ''});
|
if (ui.item) {
|
||||||
} else if (ui._list) {
|
pandora.UI.set({item: ''});
|
||||||
pandora.UI.set({find: {conditions: [], operator: '&'}});
|
} 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: ''});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue