handle new list keyboard shortcuts
This commit is contained in:
parent
c6613c30f6
commit
8fde5e9111
2 changed files with 22 additions and 2 deletions
|
|
@ -217,8 +217,17 @@ oml.ui.folders = function() {
|
|||
sortable: !index
|
||||
})
|
||||
.bindEvent({
|
||||
add: function() {
|
||||
!index && oml.addList();
|
||||
add: function(data) {
|
||||
var keys = data.keys || '',
|
||||
listData = oml.getListData();
|
||||
if (listData.user === '' && (
|
||||
keys != 'shift' || ui.listSelection
|
||||
)) {
|
||||
oml.addList(
|
||||
Ox.contains(keys, 'alt'),
|
||||
Ox.contains(keys, 'shift')
|
||||
);
|
||||
}
|
||||
},
|
||||
'delete': function() {
|
||||
!index && oml.ui.deleteListDialog().open();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue