[Spice-devel] [PATCH spice-html5 2/4] Support the keypad minus key in Chrome.

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


The keypad minus key at 109 is common between at least Chrome and Firefox.

Signed-off-by: Jeremy White <jwhite at codeweavers.com>
---
 src/utils.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/utils.js b/src/utils.js
index f12edf9..5059a5b 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -211,6 +211,7 @@ common_scanmap[97]                 = KeyNames.KEY_KP_1;
 common_scanmap[98]                 = KeyNames.KEY_KP_2;
 common_scanmap[99]                 = KeyNames.KEY_KP_3;
 common_scanmap[96]                 = KeyNames.KEY_KP_0;
+common_scanmap[109]                = KeyNames.KEY_Minus;
 common_scanmap[110]                = KeyNames.KEY_KP_Decimal;
 common_scanmap[191]                = KeyNames.KEY_Slash;
 common_scanmap[190]                = KeyNames.KEY_Period;
@@ -228,7 +229,6 @@ common_scanmap[93]                 = 0xE05D; //KeyNames.KEY_Menu
 /* Firefox/Mozilla codes */
 var firefox_scanmap = [];
 firefox_scanmap[173]                = KeyNames.KEY_Minus;
-firefox_scanmap[109]                = KeyNames.KEY_Minus;
 firefox_scanmap[61]                 = KeyNames.KEY_Equal;
 firefox_scanmap[59]                 = KeyNames.KEY_SemiColon;
 
-- 
2.20.1



More information about the Spice-devel mailing list