prevent default bookmark page(ctrl-d) in chrome

This commit is contained in:
j 2016-01-17 15:56:54 +05:30
parent d549ab3592
commit 2f6a9ac82f
1 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,7 @@ oml.ui.list = function() {
}
oml.$ui.statusbar.set('total', data);
},
key_control_d: function() {
key_control_d: function(event) {
var items = ui.listSelection.filter(function(id) {
return oml.$ui.list.value(id, 'mediastate') == 'unavailable';
});
@ -80,6 +80,7 @@ oml.ui.list = function() {
// FIXME: reload?
});
}
event.preventDefault();
},
key_control_delete: function() {
if (that.options('selected').filter(function(id) {