mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 19:43:16 +00:00
23 lines
515 B
JavaScript
23 lines
515 B
JavaScript
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;
|
|
}
|