Displaying 1 result from an estimated 1 matches for "altkey".
Did you mean:
alter
2009 Jul 16
2
[PATCH server] updated anyterm/ovirt integration
...ke keypress events you don't get auto-repeat.
+
+function keypress(ev) {
+ if (!ev) var ev=window.event;
+
+ // Only handle "safe" characters here. Anything unusual is ignored; it would
+ // have been handled earlier by the keydown function below.
+ if ((ev.ctrlKey && !ev.altKey) // Ctrl is pressed (but not altgr, which is reported
+ // as ctrl+alt in at least some browsers).
+ || (ev.which==0) // there's no key in the event; maybe a shift key?
+ // (Mozilla sends which==0 && keyCode==0...