[patch] Adds missing mapping of the alphanumeric minus key. (spice-html5)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm the Debian Developer working on spice-html5 (eg: I uploaded
spice-html5 recently in Debian Sid).

I noticed that the minus key on the alphanumeric block wasn't mapped.
This was particularly annoying on my laptop keyboard when using
spice-html5 to access remote servers (eg: many commands needs argument
with the minus sign), with the "no map for 173" alert box popping each
time...

The attached patch made it work with Firefox 21 (in fact, Iceweasel 21
in Debian). I don't know if it works on other browsers, but it worked
for me.

Cheers,

Thomas Goirand (zigo)
>From ad9d69eb09f63538db06664a3d88d48ff56b2abb Mon Sep 17 00:00:00 2001
From: Thomas Goirand <thomas@xxxxxxxxxx>
Date: Sat, 25 May 2013 23:56:14 +0800
Subject: [PATCH] Adds missing mapping of the alphanumeric minus key.

---
 utils.js |    1 +
 1 file changed, 1 insertion(+)

diff --git a/utils.js b/utils.js
index 5ef23d6..167f184 100644
--- a/utils.js
+++ b/utils.js
@@ -208,6 +208,7 @@ common_scanmap[93]                 = 0xE05D; //KEY_Menu
 
 /* Firefox/Mozilla codes */
 var firefox_scanmap = [];
+firefox_scanmap[173]                = KEY_Minus;
 firefox_scanmap[109]                = KEY_Minus;
 firefox_scanmap[61]                 = KEY_Equal;
 firefox_scanmap[59]                 = KEY_SemiColon;
-- 
1.7.10.4

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]