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();
|
pandora.$ui.previewDialog.update();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
key_escape: function() {
|
||||||
|
if (pandora.$ui.previewDialog) {
|
||||||
|
pandora.$ui.previewDialog.close();
|
||||||
|
delete pandora.$ui.previewDialog;
|
||||||
|
}
|
||||||
|
},
|
||||||
paste: function(data) {
|
paste: function(data) {
|
||||||
var items = pandora.clipboard.paste();
|
var items = pandora.clipboard.paste();
|
||||||
if (items.length && pandora.clipboard.type() == 'item' && pandora.getListData().editable) {
|
if (items.length && pandora.clipboard.type() == 'item' && pandora.getListData().editable) {
|
||||||
|
|
|
||||||
|
|
@ -145,6 +145,9 @@ pandora.ui.previewPlayer = function() {
|
||||||
close: function() {
|
close: function() {
|
||||||
that.close();
|
that.close();
|
||||||
},
|
},
|
||||||
|
key_escape: function() {
|
||||||
|
that.close();
|
||||||
|
},
|
||||||
open: function() {
|
open: function() {
|
||||||
pandora.UI.set({
|
pandora.UI.set({
|
||||||
item: options.item
|
item: options.item
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue