diff --git a/include/canvas.js b/include/canvas.js index cee1dc1..d131564 100644 --- a/include/canvas.js +++ b/include/canvas.js @@ -770,8 +770,8 @@ function getKeysym(e) { case 186 : keysym = 59; break; // ; (IE) case 187 : keysym = 61; break; // = (IE) case 188 : keysym = 44; break; // , (Mozilla, IE) - case 109 : // - (Mozilla) - if (Util.Engine.gecko) { + case 109 : // - (Mozilla, Opera) + if (Util.Engine.gecko || Util.Engine.presto) { keysym = 45; } break; case 189 : keysym = 45; break; // - (IE) diff --git a/include/websock.js b/include/websock.js index 4901faf..b9f52d7 100644 --- a/include/websock.js +++ b/include/websock.js @@ -169,7 +169,7 @@ function flush() { if (websocket.bufferedAmount !== 0) { Util.Debug("bufferedAmount: " + websocket.bufferedAmount); } - if (websocket.bufferedAmount < 1000) { + if (websocket.bufferedAmount < api.maxBufferedAmount) { //Util.Debug("arr: " + arr); //Util.Debug("sQ: " + sQ); if (sQ) { @@ -281,6 +281,9 @@ function close() { } function constructor() { + // Configuration settings + api.maxBufferedAmount = 200; + // Direct access to send and receive queues api.get_sQ = get_sQ; api.get_rQ = get_rQ;