aboutsummaryrefslogtreecommitdiff
path: root/sword1
diff options
context:
space:
mode:
Diffstat (limited to 'sword1')
-rw-r--r--sword1/control.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/sword1/control.cpp b/sword1/control.cpp
index 3793e6f022..a519108370 100644
--- a/sword1/control.cpp
+++ b/sword1/control.cpp
@@ -654,6 +654,12 @@ bool Control::getConfirm(const uint8 *title) {
bool Control::keyAccepted(uint8 key) {
// this routine needs changes for Czech keys... No idea how to do that, though.
+ // FIXME: It is not a good idea to put non-ASCII chars into a C source file,
+ // since there is no way to specify which encoding you are using.
+ // It is better to encode them as hex/octal. Although in this particular
+ // case, it seems questionable to do this at all, since we currently
+ // do not at all specify which encoding keyboard events use, so this
+ // check here is probably not portable anyway...
static const char allowedSpecials[] = "éèáàúùäöüÄÖÜß,.:-()?! \"\'";
if (((key >= 'A') && (key <= 'Z')) ||
((key >= 'a') && (key <= 'z')) ||