MacOS: Fix text input (got broken in #19441, would no longer send CHAR events)

See #19441
This commit is contained in:
Henrik Rydgård
2024-10-02 16:21:53 +02:00
parent f11675bcba
commit cb06ac4af2
3 changed files with 47 additions and 12 deletions
+1 -1
View File
@@ -1329,7 +1329,7 @@ bool TextEdit::Key(const KeyInput &input) {
// Process chars.
if (input.flags & KEY_CHAR) {
int unichar = input.keyCode;
const int unichar = input.keyCode;
if (unichar >= 0x20 && !ctrlDown_) { // Ignore control characters.
// Insert it! (todo: do it with a string insert)
char buf[8];