mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 20:13:28 +00:00
V 3.5 RC 1
This commit is contained in:
26
www/include/jquery.kb-event.js
Normal file
26
www/include/jquery.kb-event.js
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
|
||||
function is_ctrl_key(event)
|
||||
{
|
||||
if(event.altKey)
|
||||
return true;
|
||||
if(event.ctrlKey)
|
||||
return true;
|
||||
if(event.metaKey) // apple key opera
|
||||
return true;
|
||||
if(event.keyCode == '17') // apple key opera
|
||||
return true;
|
||||
if(event.keyCode == '224') // apple key mozilla
|
||||
return true;
|
||||
if(event.keyCode == '91') // apple key safari
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function is_shift_key(event)
|
||||
{
|
||||
if(event.shiftKey)
|
||||
return true;
|
||||
return false;
|
||||
}
|
Reference in New Issue
Block a user