Replace VK_NUMPAD5 with VK_CLEAR.

Windows uses VK_NUMPAD5 when typing '5', which only happens with NumLock
on.  With NumLock off, the button sends VK_CLEAR.
This commit is contained in:
Ryan Prichard 2015-12-03 23:28:23 -06:00
parent da6bf1f159
commit d4bd76ff47

View File

@ -93,9 +93,9 @@ static const EscapeEncoding escapeLetterEncodings[] = {
// as with putty's arrow keys.
// * I never saw modifiers inserted into these escapes, but I think
// it should be completely OK with the CSI escapes.
{ true, '[', 'E', kBare | kSemiMod, { VK_NUMPAD5, '\0', 0 } },
{ true, '[', 'G', kBare | kSemiMod, { VK_NUMPAD5, '\0', 0 } },
{ true, 'O', 'G', kBare, { VK_NUMPAD5, '\0', 0 } },
{ true, '[', 'E', kBare | kSemiMod, { VK_CLEAR, '\0', 0 } },
{ true, '[', 'G', kBare | kSemiMod, { VK_CLEAR, '\0', 0 } },
{ true, 'O', 'G', kBare, { VK_CLEAR, '\0', 0 } },
// Home/End, letter version
// * gnome-terminal uses `ESC O [HF]`. I never saw it modified.