src/video/win32_v.cpp
branchNewGRF_ports
changeset 6870 ca3fd1fbe311
parent 6868 7eb395287b3d
child 6871 5a9dc001e1ad
equal deleted inserted replaced
6869:76282d3b748d 6870:ca3fd1fbe311
   491 			keycode = MapWindowsKey(wParam);
   491 			keycode = MapWindowsKey(wParam);
   492 
   492 
   493 			/* Silently drop all text messages as those will be handled by WM_CHAR
   493 			/* Silently drop all text messages as those will be handled by WM_CHAR
   494 			 * WM_KEYDOWN only handles CTRL+ commands and special keys like VK_LEFT, etc. */
   494 			 * WM_KEYDOWN only handles CTRL+ commands and special keys like VK_LEFT, etc. */
   495 			if (keycode == 0 || (keycode > WKC_PAUSE && GB(keycode, 13, 4) == 0)) return 0;
   495 			if (keycode == 0 || (keycode > WKC_PAUSE && GB(keycode, 13, 4) == 0)) return 0;
       
   496 
       
   497 			/* Keys handled in WM_CHAR */
       
   498 			if ((uint)(GB(keycode, 0, 12) - WKC_NUM_DIV) <= WKC_MINUS - WKC_NUM_DIV) return 0;
   496 
   499 
   497 			HandleKeypress(0 | (keycode << 16));
   500 			HandleKeypress(0 | (keycode << 16));
   498 			return 0;
   501 			return 0;
   499 		}
   502 		}
   500 
   503