Commit 9fec75c0 authored by Joel Martin's avatar Joel Martin

Fix firefox '-' key mapping.

parent d1616107
- Fix firefox key codes ('-', etc)
- Make packet sequence number optional based on WebSockets 'path'. - Make packet sequence number optional based on WebSockets 'path'.
- Better status and error feedback. - Better status and error feedback.
......
...@@ -24,7 +24,6 @@ mouseUp: function (e) { ...@@ -24,7 +24,6 @@ mouseUp: function (e) {
mouseMove: function (e) { mouseMove: function (e) {
var evt = e.event || window.event; var evt = e.event || window.event;
//e.stop();
console.log('mouse ' + evt.which + '/' + evt.button + ' up:' + console.log('mouse ' + evt.which + '/' + evt.button + ' up:' +
(evt.clientX - Canvas.c_x) + "," + (evt.clientY - Canvas.c_y)); (evt.clientX - Canvas.c_x) + "," + (evt.clientY - Canvas.c_y));
}, },
...@@ -164,7 +163,6 @@ copyImage: function(old_x, old_y, new_x, new_y, width, height) { ...@@ -164,7 +163,6 @@ copyImage: function(old_x, old_y, new_x, new_y, width, height) {
getKeysym: function(e) { getKeysym: function(e) {
evt = e.event || window.event; evt = e.event || window.event;
var keysym; var keysym;
//console.log(dirObj(e, null, 1));
/* Remap modifier and special keys */ /* Remap modifier and special keys */
switch ( evt.keyCode ) { switch ( evt.keyCode ) {
...@@ -205,7 +203,9 @@ getKeysym: function(e) { ...@@ -205,7 +203,9 @@ getKeysym: function(e) {
case 186 : keysym = 59; break; // ; (IE) case 186 : keysym = 59; break; // ; (IE)
case 187 : keysym = 61; break; // = (IE) case 187 : keysym = 61; break; // = (IE)
case 188 : keysym = 44; break; // , (Mozilla, 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 189 : keysym = 45; break; // - (IE)
case 190 : keysym = 46; break; // . (Mozilla, IE) case 190 : keysym = 46; break; // . (Mozilla, IE)
case 191 : keysym = 47; break; // / (Mozilla, IE) case 191 : keysym = 47; break; // / (Mozilla, IE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment