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

See #19441
This commit is contained in:
Henrik Rydgård committed 2024-10-02 16:21:53 +02:00
1 parent f11675bcba
commit cb06ac4af2
3 files changed
+47 -12

No files matched your search

+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];