src/video/windows/SDL_windowskeyboard.c
changeset 6925 59fedfb8faaf
parent 6922 91d157d9f283
child 6926 166712f45009
equal deleted inserted replaced
6924:5be9b933146a 6925:59fedfb8faaf
   161         /* Make sure this scancode is a valid character scancode */
   161         /* Make sure this scancode is a valid character scancode */
   162         scancode = windows_scancode_table[i];
   162         scancode = windows_scancode_table[i];
   163         if (scancode == SDL_SCANCODE_UNKNOWN ) {
   163         if (scancode == SDL_SCANCODE_UNKNOWN ) {
   164             continue;
   164             continue;
   165         }
   165         }
       
   166 		/* Don't allow the number keys right above the qwerty row to translate or the top left key (grave/backquote) */
       
   167 		/* not mapping numbers fixes the AZERTY layout (french) causing non-shifted number to appear by default */
       
   168 		if ( ( scancode >= SDL_SCANCODE_1 && scancode <= SDL_SCANCODE_0 ) || 
       
   169 			  scancode == SDL_SCANCODE_GRAVE )  {
       
   170 			continue;
       
   171 		}
   166 
   172 
   167 		vk =  MapVirtualKey(i, MAPVK_VSC_TO_VK);
   173 		vk =  MapVirtualKey(i, MAPVK_VSC_TO_VK);
   168 		if ( vk ) {
   174 		if ( vk ) {
   169 			int ch;
   175 			int ch;
   170 			ch = (MapVirtualKey( vk, MAPVK_VK_TO_CHAR ) & 0x7FFF);
   176 			ch = (MapVirtualKey( vk, MAPVK_VK_TO_CHAR ) & 0x7FFF);