From bd96ebe0a9b0e4f0cf4970a8c92cc3915af22048 Mon Sep 17 00:00:00 2001
From: Jeremy White <jwhite@codeweavers.com>
Date: Mon, 5 Aug 2019 14:27:05 -0500
Subject: [PATCH] Support the keypad minus key in Chrome.

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

Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Acked-by: Frediano Ziglio <fziglio@redhat.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;
 
-- 
GitLab