[Spice-devel] [PATCH spice-html5 1/4] Use a named constant from atKeynames.js for the PrintScreen/SysRq key.

Jeremy White jwhite at codeweavers.com
Mon Aug 5 19:27:04 UTC 2019


Correct a typo from the upstream atKeynames.js at the same time.

Signed-off-by: Jeremy White <jwhite at codeweavers.com>
---
 src/atKeynames.js | 2 +-
 src/utils.js      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/atKeynames.js b/src/atKeynames.js
index 110e9e9..767e78b 100644
--- a/src/atKeynames.js
+++ b/src/atKeynames.js
@@ -174,7 +174,7 @@ var KeyNames = {
   KEY_KP_3        :/* 3           PgDown    0x51  */   81,
   KEY_KP_0        :/* 0           Insert    0x52  */   82,
   KEY_KP_Decimal  :/* . (Decimal) Delete    0x53  */   83,
-  KEY_SysReqest   :/* SysReqest             0x54  */   84,
+  KEY_SysRequest  :/* SysRequest            0x54  */   84,
                    /* NOTUSED               0x55  */
   KEY_Less        :/* < (Less)   >(Greater) 0x56  */   86,
   KEY_F11         :/* F11                   0x57  */   87,
diff --git a/src/utils.js b/src/utils.js
index 1874e97..f12edf9 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -157,6 +157,7 @@ common_scanmap[16]                 = KeyNames.KEY_ShiftL;
 common_scanmap[17]                 = KeyNames.KEY_LCtrl;
 common_scanmap[18]                 = KeyNames.KEY_Alt;
 common_scanmap[20]                 = KeyNames.KEY_CapsLock;
+common_scanmap[44]                 = KeyNames.KEY_SysReqest;
 common_scanmap[144]                = KeyNames.KEY_NumLock;
 common_scanmap[112]                = KeyNames.KEY_F1;
 common_scanmap[113]                = KeyNames.KEY_F2;
@@ -186,7 +187,6 @@ common_scanmap[40]                 = 0xE050; // Down
 common_scanmap[34]                 = 0xE051; // PgDown
 common_scanmap[45]                 = 0xE052; // Insert
 common_scanmap[46]                 = 0xE053; // Delete
-common_scanmap[44]                 = 0x2A37; // Print
 
 /* These are not common between ALL browsers but are between Firefox and DOM3 */
 common_scanmap['1'.charCodeAt(0)]  = KeyNames.KEY_1;
-- 
2.20.1



More information about the Spice-devel mailing list