From cdeeb67d8388d63cb17db4acad4ce21b223d3af9 Mon Sep 17 00:00:00 2001 From: Jonathan Westhues Date: Wed, 9 Jul 2008 23:26:41 -0800 Subject: [PATCH] Oops, the ASCII codes for some characters I was using overlapped with the VK codes for some keys that I wasn't. Ugly, but work around that. [git-p4: depot-paths = "//depot/solvespace/": change = 1833] --- win32/w32main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/win32/w32main.cpp b/win32/w32main.cpp index abe6a8f..3dedae6 100644 --- a/win32/w32main.cpp +++ b/win32/w32main.cpp @@ -466,6 +466,15 @@ static BOOL ProcessKeyDown(WPARAM wParam) case VK_DELETE: c = 127; break; case VK_TAB: c = '\t'; break; + // These overlap with some character codes that I'm using, so + // don't let them trigger by accident. + case VK_F16: + case VK_INSERT: + case VK_EXECUTE: + case VK_APPS: + case VK_LWIN: + case VK_RWIN: return FALSE; + default: c = wParam; break;