Skip to content

Instantly share code, notes, and snippets.

@mattn
Created June 12, 2013 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattn/5762321 to your computer and use it in GitHub Desktop.
Save mattn/5762321 to your computer and use it in GitHub Desktop.
diff -r c37e77761d00 src/os_win32.c
--- a/src/os_win32.c Tue Jun 11 22:44:09 2013 +0200
+++ b/src/os_win32.c Wed Jun 12 10:52:45 2013 +0900
@@ -794,19 +794,19 @@
if ((nModifs & CTRL) != 0 && (nModifs & ~CTRL) == 0 && pker->AChar == NUL)
{
/* Ctrl-6 is Ctrl-^ */
- if (pker->wVirtualKeyCode == '6')
+ if (pker->wVirtualKeyCode == '6' || pker->wVirtualKeyCode == 0xDE)
{
*pch = Ctrl_HAT;
return TRUE;
}
/* Ctrl-2 is Ctrl-@ */
- else if (pker->wVirtualKeyCode == '2')
+ else if (pker->wVirtualKeyCode == '2' || pker->wVirtualKeyCode == 0xC0)
{
*pch = NUL;
return TRUE;
}
/* Ctrl-- is Ctrl-_ */
- else if (pker->wVirtualKeyCode == 0xBD)
+ else if (pker->wVirtualKeyCode == 0xBD || pker->wVirtualKeyCode == 0xE2)
{
*pch = Ctrl__;
return TRUE;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment