Current Path : /usr/local/ispmgr/skins/sirius/ |
Current File : //usr/local/ispmgr/skins/sirius/hotkeys.js |
var hotkeys_events = new Array();function RegisterHotkeyEvent (name, processor) {hotkeys_events[name] = processor;}function UnRegisterHotkeyEvent (name) {delete hotkeys_events[name];}function ProcessHotkeyEvent (e) {var code;if (!e) var e = window.event;if (e.keyCode) code = e.keyCode;else if (e.which) code = e.which;for (var i in hotkeys_events) {if (hotkeys_events[i](code, e)) {return;}}}if (document.getElementById) document.onkeydown = ProcessHotkeyEvent;