Some minor improvements for the Mac keyboard mapping: accent-space would under some cicumstances add an extra space; tilde-space would add a 'funny' tilde from far up un the MacRoman font, not the ASCII tilde as expected.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5084 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher
2006-05-05 14:09:50 +00:00
parent 8e37fbafc8
commit 48c8932fd5
+6 -1
View File
@@ -46,7 +46,7 @@ static const char* const compose_pairs =
"? ! !!v-f ~~Dt<<>>.. `A~A~OOEoe"
"- --''``\"'\"`:-^V:y:Y//E=< > fifl"
"++..,,_\"%%^A^E'A:E`E'I^I:I`I'O^O"
"mc`O'U^U`U||^ ~ _ u . * , ~ ; v ";
"mc`O'U^U`U||^ ~^_ u . * , ~-; v ";
#else
@@ -142,6 +142,11 @@ int Fl::compose(int& del) {
e_text[0] = 0xf6;
return 1;
}
if (ascii==' ') {
del = 0;
compose_state = 0;
return 0;
}
#endif
// now search for the pair in either order:
for (const char *p = compose_pairs; *p; p += 2) {