Bug 833719 part.1 Register some DOM keyCode values for Windows giving virtual keycode names and all OEM speicific virtual keyCode of Windows except we already used values r+sr=smaug

This commit is contained in:
Masayuki Nakano 2013-02-13 14:47:19 +09:00
Родитель cf6666ce01
Коммит 1f26e938b4
2 изменённых файлов: 74 добавлений и 1 удалений

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

@ -155,6 +155,12 @@ DEFINE_VK_INTERNAL(_F24),
DEFINE_VK_INTERNAL(_NUM_LOCK),
DEFINE_VK_INTERNAL(_SCROLL_LOCK),
DEFINE_VK_INTERNAL(_WIN_OEM_FJ_JISHO),
DEFINE_VK_INTERNAL(_WIN_OEM_FJ_MASSHOU),
DEFINE_VK_INTERNAL(_WIN_OEM_FJ_TOUROKU),
DEFINE_VK_INTERNAL(_WIN_OEM_FJ_LOYA),
DEFINE_VK_INTERNAL(_WIN_OEM_FJ_ROYA),
DEFINE_VK_INTERNAL(_CIRCUMFLEX),
DEFINE_VK_INTERNAL(_EXCLAMATION),
DEFINE_VK_INTERNAL(_DOUBLE_QUOTE),
@ -189,7 +195,33 @@ DEFINE_VK_INTERNAL(_CLOSE_BRACKET),
DEFINE_VK_INTERNAL(_QUOTE),
DEFINE_VK_INTERNAL(_META),
DEFINE_VK_INTERNAL(_ALTGR)
DEFINE_VK_INTERNAL(_ALTGR),
DEFINE_VK_INTERNAL(_WIN_ICO_HELP),
DEFINE_VK_INTERNAL(_WIN_ICO_00),
DEFINE_VK_INTERNAL(_WIN_ICO_CLEAR),
DEFINE_VK_INTERNAL(_WIN_OEM_RESET),
DEFINE_VK_INTERNAL(_WIN_OEM_JUMP),
DEFINE_VK_INTERNAL(_WIN_OEM_PA1),
DEFINE_VK_INTERNAL(_WIN_OEM_PA2),
DEFINE_VK_INTERNAL(_WIN_OEM_PA3),
DEFINE_VK_INTERNAL(_WIN_OEM_WSCTRL),
DEFINE_VK_INTERNAL(_WIN_OEM_CUSEL),
DEFINE_VK_INTERNAL(_WIN_OEM_ATTN),
DEFINE_VK_INTERNAL(_WIN_OEM_FINISH),
DEFINE_VK_INTERNAL(_WIN_OEM_COPY),
DEFINE_VK_INTERNAL(_WIN_OEM_AUTO),
DEFINE_VK_INTERNAL(_WIN_OEM_ENLW),
DEFINE_VK_INTERNAL(_WIN_OEM_BACKTAB),
DEFINE_VK_INTERNAL(_ATTN),
DEFINE_VK_INTERNAL(_CRSEL),
DEFINE_VK_INTERNAL(_EXSEL),
DEFINE_VK_INTERNAL(_EREOF),
DEFINE_VK_INTERNAL(_PLAY),
DEFINE_VK_INTERNAL(_ZOOM),
DEFINE_VK_INTERNAL(_PA1),
DEFINE_VK_INTERNAL(_WIN_OEM_CLEAR)
#undef DEFINE_VK_INTERNAL
#undef DEFINE_VK_INTERNAL2

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

@ -146,6 +146,14 @@ interface nsIDOMKeyEvent : nsIDOMUIEvent
const unsigned long DOM_VK_NUM_LOCK = 0x90;
const unsigned long DOM_VK_SCROLL_LOCK = 0x91;
// OEM specific virtual keyCode of Windows should pass through DOM keyCode
// for compatibility with the other web browsers on Windows.
const unsigned long DOM_VK_WIN_OEM_FJ_JISHO = 0x92;
const unsigned long DOM_VK_WIN_OEM_FJ_MASSHOU = 0x93;
const unsigned long DOM_VK_WIN_OEM_FJ_TOUROKU = 0x94;
const unsigned long DOM_VK_WIN_OEM_FJ_LOYA = 0x95;
const unsigned long DOM_VK_WIN_OEM_FJ_ROYA = 0x96;
const unsigned long DOM_VK_CIRCUMFLEX = 0xA0;
const unsigned long DOM_VK_EXCLAMATION = 0xA1;
const unsigned long DOM_VK_DOUBLE_QUOTE = 0xA2;
@ -182,6 +190,39 @@ interface nsIDOMKeyEvent : nsIDOMUIEvent
const unsigned long DOM_VK_META = 0xE0;
const unsigned long DOM_VK_ALTGR = 0xE1;
// OEM specific virtual keyCode of Windows should pass through DOM keyCode
// for compatibility with the other web browsers on Windows.
const unsigned long DOM_VK_WIN_ICO_HELP = 0xE3;
const unsigned long DOM_VK_WIN_ICO_00 = 0xE4;
const unsigned long DOM_VK_WIN_ICO_CLEAR = 0xE6;
const unsigned long DOM_VK_WIN_OEM_RESET = 0xE9;
const unsigned long DOM_VK_WIN_OEM_JUMP = 0xEA;
const unsigned long DOM_VK_WIN_OEM_PA1 = 0xEB;
const unsigned long DOM_VK_WIN_OEM_PA2 = 0xEC;
const unsigned long DOM_VK_WIN_OEM_PA3 = 0xED;
const unsigned long DOM_VK_WIN_OEM_WSCTRL = 0xEE;
const unsigned long DOM_VK_WIN_OEM_CUSEL = 0xEF;
const unsigned long DOM_VK_WIN_OEM_ATTN = 0xF0;
const unsigned long DOM_VK_WIN_OEM_FINISH = 0xF1;
const unsigned long DOM_VK_WIN_OEM_COPY = 0xF2;
const unsigned long DOM_VK_WIN_OEM_AUTO = 0xF3;
const unsigned long DOM_VK_WIN_OEM_ENLW = 0xF4;
const unsigned long DOM_VK_WIN_OEM_BACKTAB = 0xF5;
// Following keys are not used on most keyboards. However, for compatibility
// with other browsers on Windows, we should define them.
const unsigned long DOM_VK_ATTN = 0xF6;
const unsigned long DOM_VK_CRSEL = 0xF7;
const unsigned long DOM_VK_EXSEL = 0xF8;
const unsigned long DOM_VK_EREOF = 0xF9;
const unsigned long DOM_VK_PLAY = 0xFA;
const unsigned long DOM_VK_ZOOM = 0xFB;
const unsigned long DOM_VK_PA1 = 0xFD;
// OEM specific virtual keyCode of Windows should pass through DOM keyCode
// for compatibility with the other web browsers on Windows.
const unsigned long DOM_VK_WIN_OEM_CLEAR = 0xFE;
readonly attribute unsigned long charCode;
readonly attribute unsigned long keyCode;