add keyboard shortcut to delete item from context browser

This commit is contained in:
Rolux 2016-01-07 10:43:42 +05:30
commit 4e056e4ecf
2 changed files with 11 additions and 2 deletions

View file

@ -76,6 +76,12 @@ oml.ui.browser = function() {
'overflow-y': 'hidden'
})
.bindEvent({
key_control_delete: function() {
var listData = oml.getListData();
if (listData.own) {
oml.ui.deleteItemsDialog().open();
}
},
open: function(data) {
if (that.value(data.ids[0], 'mediastate') == 'available') {
oml.UI.set({itemView: 'book'});