edit metadata: fix dialog, add keyboard handler
This commit is contained in:
parent
0ac89bc8d2
commit
a6f34a0e3a
1 changed files with 10 additions and 3 deletions
|
@ -431,9 +431,7 @@ oml.ui.mainMenu = function() {
|
|||
oml.reloadList();
|
||||
});
|
||||
} 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') {
|
||||
fromMenu = true;
|
||||
oml.undoHistory();
|
||||
|
@ -538,6 +536,15 @@ oml.ui.mainMenu = function() {
|
|||
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() {
|
||||
if (!oml.hasDialogOrScreen()) {
|
||||
if (ui._findState.key != 'advanced') {
|
||||
|
|
Loading…
Reference in a new issue