X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fquestion.C;h=43130fca6db6856cc482ad087a6725da41d1cd2e;hb=c0d624ab88c9973237c624b4ee055ad5dd83d4ed;hp=66ff7b6ae6826808d80eb432a0caaf894d4907c2;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/question.C b/cinelerra-5.1/cinelerra/question.C index 66ff7b6a..43130fca 100644 --- a/cinelerra-5.1/cinelerra/question.C +++ b/cinelerra-5.1/cinelerra/question.C @@ -25,6 +25,7 @@ #include "question.h" #include "theme.h" +#include "ctype.h" #define WIDTH 375 #define HEIGHT 160 @@ -72,7 +73,10 @@ int QuestionYesButton::handle_event() int QuestionYesButton::keypress_event() { - if(get_keypress() == 'y') { handle_event(); return 1; } + if( toupper(get_keypress()) == *get_text() ) { + handle_event(); + return 1; + } return 0; } @@ -91,6 +95,9 @@ int QuestionNoButton::handle_event() int QuestionNoButton::keypress_event() { - if(get_keypress() == 'n') { handle_event(); return 1; } + if( toupper(get_keypress()) == *get_text() ) { + handle_event(); + return 1; + } return 0; }