edit metadata: fix dialog, add keyboard handler

This commit is contained in:
Rolux 2016-01-05 19:57:42 +05:30
parent 0ac89bc8d2
commit a6f34a0e3a

View file

@ -431,9 +431,7 @@ oml.ui.mainMenu = function() {
oml.reloadList(); oml.reloadList();
}); });
} else if (data.id == 'editmetadata') { } else if (data.id == 'editmetadata') {
(oml.$ui.editDialog || ( oml.$ui.editDialog = oml.ui.editDialog().open();
oml.$ui.editDialog = oml.ui.editDialog()
)).open();
} else if (data.id == 'undo') { } else if (data.id == 'undo') {
fromMenu = true; fromMenu = true;
oml.undoHistory(); oml.undoHistory();
@ -538,6 +536,15 @@ oml.ui.mainMenu = function() {
oml.UI.set({page: 'preferences'}); oml.UI.set({page: 'preferences'});
} }
}, },
key_control_e: function() {
if (
!oml.hasDialogOrScreen()
&& ui.listSelection.length
&& !oml.getListData().user
) {
oml.$ui.editDialog = oml.ui.editDialog().open()
}
},
key_control_f: function() { key_control_f: function() {
if (!oml.hasDialogOrScreen()) { if (!oml.hasDialogOrScreen()) {
if (ui._findState.key != 'advanced') { if (ui._findState.key != 'advanced') {