src/video/windows/SDL_windowskeyboard.c
changeset 6925 59fedfb8faaf
parent 6922 91d157d9f283
child 6926 166712f45009
     1.1 --- a/src/video/windows/SDL_windowskeyboard.c	Mon Feb 25 16:52:50 2013 -0800
     1.2 +++ b/src/video/windows/SDL_windowskeyboard.c	Mon Feb 25 16:52:51 2013 -0800
     1.3 @@ -163,6 +163,12 @@
     1.4          if (scancode == SDL_SCANCODE_UNKNOWN ) {
     1.5              continue;
     1.6          }
     1.7 +		/* Don't allow the number keys right above the qwerty row to translate or the top left key (grave/backquote) */
     1.8 +		/* not mapping numbers fixes the AZERTY layout (french) causing non-shifted number to appear by default */
     1.9 +		if ( ( scancode >= SDL_SCANCODE_1 && scancode <= SDL_SCANCODE_0 ) || 
    1.10 +			  scancode == SDL_SCANCODE_GRAVE )  {
    1.11 +			continue;
    1.12 +		}
    1.13  
    1.14  		vk =  MapVirtualKey(i, MAPVK_VSC_TO_VK);
    1.15  		if ( vk ) {