src/events/SDL_keyboard.c
branchSDL-1.2
changeset 11977 6cf3a08b42dc
parent 6137 4720145f848b
     1.1 --- a/src/events/SDL_keyboard.c	Sat Mar 24 23:10:59 2018 +0300
     1.2 +++ b/src/events/SDL_keyboard.c	Sat Mar 24 23:38:50 2018 +0300
     1.3 @@ -334,8 +334,16 @@
     1.4  	/* Done.  Whew. */
     1.5  	return(0);
     1.6  }
     1.7 +
     1.8 +#ifdef _WIN32
     1.9 +extern void WIN_ResetDeadKeys(void);
    1.10 +#endif
    1.11 +
    1.12  void SDL_KeyboardQuit(void)
    1.13  {
    1.14 +#ifdef _WIN32
    1.15 +	WIN_ResetDeadKeys();
    1.16 +#endif
    1.17  }
    1.18  
    1.19  /* We lost the keyboard, so post key up messages for all pressed keys */
    1.20 @@ -362,6 +370,11 @@
    1.21  	if ( enable >= 0 ) {
    1.22  		SDL_TranslateUNICODE = enable;
    1.23  	}
    1.24 +#ifdef _WIN32
    1.25 +	if (enable != old_mode) {
    1.26 +		WIN_ResetDeadKeys();
    1.27 +	}
    1.28 +#endif
    1.29  	return(old_mode);
    1.30  }
    1.31