Using hot keys CTRL+1
Posted: Thu Jun 26, 2014 5:27 am
My resolution of the using hot keys CTRL+1 in agent dashboard.
In file vicidial.php
In file vicidial.php
- Code: Select all
function begin_all_refresh()
{
<?php
if ( ($HK_statuses_camp > 0) && ($user_level>=$HKuser_level) && ($VU_hotkeys_active > 0) ) {
echo '
document.onkeydown=function(event) {
event = event || window.event;
if(event.keyCode != 0){var key=event.keyCode;}else{var key=event.which; }
if(ctrl_enable == 1){hotkeypress(key);}
if(key == 17){ctrl_enable=1;}else{ctrl_enable=0;}
}';
}
?>
all_refresh();
}