close preview with escape
This commit is contained in:
parent
7a1da35f34
commit
622fa468fb
2 changed files with 9 additions and 0 deletions
|
|
@ -490,6 +490,12 @@ pandora.ui.list = function() {
|
|||
pandora.$ui.previewDialog.update();
|
||||
}
|
||||
},
|
||||
key_escape: function() {
|
||||
if (pandora.$ui.previewDialog) {
|
||||
pandora.$ui.previewDialog.close();
|
||||
delete pandora.$ui.previewDialog;
|
||||
}
|
||||
},
|
||||
paste: function(data) {
|
||||
var items = pandora.clipboard.paste();
|
||||
if (items.length && pandora.clipboard.type() == 'item' && pandora.getListData().editable) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue