Bug 1405370 - [marionette] Add missing keys to virtual keyboard lookup table. r=ato

Until now we only supported the internal Unicode to virtual
key mapping at the standard and left location of the keyboard.
This patch adds all the remaining special keys which are
located at the right side and in the numpad area.

This mapping table is somewhat equivalent to the normalized
key translation, but is using the "VK_" prefix.

--HG--
extra : rebase_source : 69030a613fc33e6e3b87eabc44281981c84ee0d7
This commit is contained in:
Henrik Skupin 2018-09-20 11:34:19 +02:00
Родитель cb806aa652
Коммит 17aaf95a98
1 изменённых файлов: 15 добавлений и 1 удалений

Просмотреть файл

@ -843,7 +843,6 @@ const VIRTUAL_KEYCODE_LOOKUP = {
"\uE008": "VK_SHIFT",
"\uE009": "VK_CONTROL",
"\uE00A": "VK_ALT",
"\uE03D": "VK_META",
"\uE00B": "VK_PAUSE",
"\uE00C": "VK_ESCAPE",
"\uE00D": "VK_SPACE", // printable
@ -887,6 +886,21 @@ const VIRTUAL_KEYCODE_LOOKUP = {
"\uE03A": "VK_F10",
"\uE03B": "VK_F11",
"\uE03C": "VK_F12",
"\uE03D": "VK_META",
"\uE050": "VK_SHIFT",
"\uE051": "VK_CONTROL",
"\uE052": "VK_ALT",
"\uE053": "VK_META",
"\uE054": "VK_PAGE_UP",
"\uE055": "VK_PAGE_DOWN",
"\uE056": "VK_END",
"\uE057": "VK_HOME",
"\uE058": "VK_LEFT",
"\uE059": "VK_UP",
"\uE05A": "VK_RIGHT",
"\uE05B": "VK_DOWN",
"\uE05C": "VK_INSERT",
"\uE05D": "VK_DELETE",
};
function getKeyCode(c) {