-- Fix firefox key codes ('-', etc)
-
- Make packet sequence number optional based on WebSockets 'path'.
- Better status and error feedback.
mouseMove: function (e) {
var evt = e.event || window.event;
- //e.stop();
console.log('mouse ' + evt.which + '/' + evt.button + ' up:' +
(evt.clientX - Canvas.c_x) + "," + (evt.clientY - Canvas.c_y));
},
getKeysym: function(e) {
evt = e.event || window.event;
var keysym;
- //console.log(dirObj(e, null, 1));
/* Remap modifier and special keys */
switch ( evt.keyCode ) {
case 186 : keysym = 59; break; // ; (IE)
case 187 : keysym = 61; break; // = (IE)
case 188 : keysym = 44; break; // , (Mozilla, IE)
- //case 109 : // - (Mozilla)
+ case 109 : // - (Mozilla)
+ if (Browser.Engine.gecko)
+ keysym = 45; break;
case 189 : keysym = 45; break; // - (IE)
case 190 : keysym = 46; break; // . (Mozilla, IE)
case 191 : keysym = 47; break; // / (Mozilla, IE)