|
|
@ -1,3 +1,13 @@
|
|
|
|
|
|
|
|
var hotkeys_enabled = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function disableHotkeys() {
|
|
|
|
|
|
|
|
hotkeys_enabled = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function enableHotkeys() {
|
|
|
|
|
|
|
|
hotkeys_enabled = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function notify_callback() {
|
|
|
|
function notify_callback() {
|
|
|
|
var container = document.getElementById('notify');
|
|
|
|
var container = document.getElementById('notify');
|
|
|
|
if (xmlhttp.readyState == 4) {
|
|
|
|
if (xmlhttp.readyState == 4) {
|
|
|
@ -56,8 +66,11 @@ function printLockingError() {
|
|
|
|
var seq = "";
|
|
|
|
var seq = "";
|
|
|
|
|
|
|
|
|
|
|
|
function hotkey_handler(e) {
|
|
|
|
function hotkey_handler(e) {
|
|
|
|
|
|
|
|
|
|
|
|
var keycode;
|
|
|
|
var keycode;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!hotkeys_enabled) return;
|
|
|
|
|
|
|
|
|
|
|
|
if (window.event) {
|
|
|
|
if (window.event) {
|
|
|
|
keycode = window.event.keyCode;
|
|
|
|
keycode = window.event.keyCode;
|
|
|
|
} else if (e) {
|
|
|
|
} else if (e) {
|
|
|
|