projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix shf-f1/f2 toggle timeline update
[goodguy/history.git]
/
cinelerra-5.1
/
cinelerra
/
question.C
diff --git
a/cinelerra-5.1/cinelerra/question.C
b/cinelerra-5.1/cinelerra/question.C
index 66ff7b6ae6826808d80eb432a0caaf894d4907c2..43130fca6db6856cc482ad087a6725da41d1cd2e 100644
(file)
--- 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 "question.h"
#include "theme.h"
+#include "ctype.h"
#define WIDTH 375
#define HEIGHT 160
#define WIDTH 375
#define HEIGHT 160
@@
-72,7
+73,10
@@
int QuestionYesButton::handle_event()
int QuestionYesButton::keypress_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;
}
return 0;
}
@@
-91,6
+95,9
@@
int QuestionNoButton::handle_event()
int QuestionNoButton::keypress_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;
}
return 0;
}