Commit bdbf90e3fc27c123e699c03f54de3e35e51861dc

Sam Lantinga 2022-07-01T09:17:30

on-screen keyboard newline is reported as an Enter key

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/events/scancodes_ascii.h b/src/events/scancodes_ascii.h
index d46331c..c30cddc 100644
--- a/src/events/scancodes_ascii.h
+++ b/src/events/scancodes_ascii.h
@@ -47,7 +47,7 @@ static ASCIIKeyInfo SDL_ASCIIKeyInfoTable[] = {
 /*   7 */ { SDL_SCANCODE_UNKNOWN, 0 },
 /*   8 */ { SDL_SCANCODE_BACKSPACE, 0 },
 /*   9 */ { SDL_SCANCODE_UNKNOWN, 0 },
-/*  10 */ { SDL_SCANCODE_UNKNOWN, 0 },
+/*  10 */ { SDL_SCANCODE_RETURN, 0 },
 /*  11 */ { SDL_SCANCODE_UNKNOWN, 0 },
 /*  12 */ { SDL_SCANCODE_UNKNOWN, 0 },
 /*  13 */ { SDL_SCANCODE_RETURN, 0 },