more bugfix for #138
This commit is contained in:
parent
cc64196c6b
commit
a182ce82bd
|
@ -316,7 +316,6 @@ bool Window::handleEvent() {
|
|||
case SDL_KEYDOWN: {
|
||||
//printf("In SDL_KEYDOWN\n");
|
||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf ("In [%s::%s Line: %d] =================================== START OF SDL SDL_KEYDOWN ================================\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__);
|
||||
if(event.key.repeat!=0) break;
|
||||
keystate = event.key.keysym;
|
||||
bool keyDownConsumed=false;
|
||||
if(global_window) {
|
||||
|
@ -366,6 +365,7 @@ bool Window::handleEvent() {
|
|||
// handle ALT+Return
|
||||
if( (keyName == "Return" || keyName == "Enter")
|
||||
&& (event.key.keysym.mod & (KMOD_LALT | KMOD_RALT))) {
|
||||
if(event.key.repeat!=0) break;
|
||||
if (Chrono::getCurMillis() - getLastToggle() > 100) {
|
||||
toggleFullscreen();
|
||||
setLastToggle(Chrono::getCurMillis());
|
||||
|
|
Loading…
Reference in New Issue