search for: key_ev_stop

Displaying 1 result from an estimated 1 matches for "key_ev_stop".

2009 Jul 16
2
[PATCH server] updated anyterm/ovirt integration
...f (!send_in_progress && open && kb_buf!="") { + send(); + } +} + + +function process_key(k) { +// alert("key="+k); +// return; + kb_buf+=k; + maybe_send(); +} + + +function esc_seq(s) { + return String.fromCharCode(27)+"["+s; +} + + +function key_ev_stop(ev) { + // We want this key event to do absolutely nothing else. + ev.cancelBubble=true; + if (ev.stopPropagation) ev.stopPropagation(); + if (ev.preventDefault) ev.preventDefault(); + try { ev.keyCode=0; } catch(e){} +} + +function key_ev_supress(ev) { + // We want this keydown event to bec...