From 0dc99e4038c4cc6abb21ff6bd2bd2b0641a03f3a Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Thu, 1 Sep 2016 15:59:01 +0200 Subject: [PATCH] Move QEMUExtendedKeyEvent encoding The encoding list is ordered by number. --- include/rfb.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/include/rfb.js b/include/rfb.js index 9a7f373..b29e107 100644 --- a/include/rfb.js +++ b/include/rfb.js @@ -55,11 +55,11 @@ var RFB; ['DesktopSize', -223 ], ['last_rect', -224 ], ['Cursor', -239 ], + ['QEMUExtendedKeyEvent', -258 ], ['ExtendedDesktopSize', -308 ], ['xvp', -309 ], ['Fence', -312 ], - ['ContinuousUpdates', -313 ], - ['QEMUExtendedKeyEvent', -258 ] + ['ContinuousUpdates', -313 ] ]; this._encHandlers = {}; @@ -2306,14 +2306,6 @@ var RFB; return true; }, - JPEG_quality_lo: function () { - Util.Error("Server sent jpeg_quality pseudo-encoding"); - }, - - compress_lo: function () { - Util.Error("Server sent compress level pseudo-encoding"); - }, - QEMUExtendedKeyEvent: function () { this._FBU.rects--; @@ -2322,6 +2314,14 @@ var RFB; this._qemuExtKeyEventSupported = true; this._keyboard.setQEMUVNCKeyboardHandler(); } + }, + + JPEG_quality_lo: function () { + Util.Error("Server sent jpeg_quality pseudo-encoding"); + }, + + compress_lo: function () { + Util.Error("Server sent compress level pseudo-encoding"); } }; })();