#include "mwindowgui.h"
#include "theme.h"
-
+#include <ctype.h>
ConfirmQuitWindow::ConfirmQuitWindow(MWindow *mwindow)
}
int ConfirmQuitYesButton::keypress_event()
-{;
- if(get_keypress() == 'y') return handle_event();
+{
+ if( toupper(get_keypress()) == *get_text() )
+ return handle_event();
return 0;
}
int ConfirmQuitNoButton::keypress_event()
{
- if(get_keypress() == 'n') return handle_event();
+ if( toupper(get_keypress()) == *get_text() )
+ return handle_event();
return 0;
}