--- xye-0.12.1.old/src/dialogs.cpp +++ xye-0.12.1/src/dialogs.cpp @@ -52,6 +52,7 @@ dialogs::yesnoCurrent.push(dt); break; case (SDLK_ESCAPE): + case (SDLK_q): dialogs::yesnoCurrent.pop(); dt.escdown=true; dialogs::yesnoCurrent.push(dt); @@ -71,8 +72,9 @@ dt.target->endSub(); dt.func(true); break; + case (SDLK_ESCAPE): - + case (SDLK_q): if(!dt.escdown) return; dialogs::yesnoCurrent.pop(); dt.target->endSub(); @@ -281,7 +283,9 @@ switch(keysym) { case SDLK_RETURN: textDialogClick(true); break; - case SDLK_ESCAPE: textDialogClick(false); break; + case SDLK_ESCAPE: + case SDLK_q: + textDialogClick(false); break; case SDLK_BACKSPACE: d.text=d.text.substr(0,d.text.length()-1); --- xye-0.12.1.old/src/levels.cpp +++ xye-0.12.1/src/levels.cpp @@ -526,6 +526,7 @@ //return false; break; case(SDLK_ESCAPE): + case(SDLK_q): thewindow->Close(); break; --- xye-0.12.1.old/src/xye.cpp +++ xye-0.12.1/src/xye.cpp @@ -793,6 +793,7 @@ break; case (SDLK_ESCAPE): + case (SDLK_q): ExitCommand(); break; --- xye-0.12.1.old/src/xyedit.cpp +++ xye-0.12.1/src/xyedit.cpp @@ -790,6 +790,7 @@ switch(keysim) { case (SDLK_ESCAPE): //ESC + case (SDLK_q): editorEscapePressed=true; break; case (SDLK_RETURN): case (SDLK_KP_ENTER): //Enter @@ -804,6 +805,7 @@ switch(keysim) { case (SDLK_ESCAPE): //ESC + case (SDLK_q): if(editorEscapePressed) { editorEscapePressed=false;