mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Fix #1169 : Disable preview keyboard shortcut while download window open
This commit is contained in:
@@ -1228,6 +1228,7 @@ $(document).ready(function(){
|
|||||||
{
|
{
|
||||||
if(p4.preview.open)
|
if(p4.preview.open)
|
||||||
{
|
{
|
||||||
|
if (($('#DIALOG1').length === 0 && $('#DIALOG2').length === 0)) {
|
||||||
switch(event.keyCode)
|
switch(event.keyCode)
|
||||||
{
|
{
|
||||||
case 39:
|
case 39:
|
||||||
@@ -1249,6 +1250,7 @@ $(document).ready(function(){
|
|||||||
cancelKey = shortCut = true;
|
cancelKey = shortCut = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user