Skip to content

Commit 404e9a6

Browse files
committed
SDL: fix keyboard handling for non-us map
1 parent 6d3b3f1 commit 404e9a6

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/platform/sdl/keymap.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const int keymap[][2] = {
1919
{SDLK_KP_MINUS, SB_KEY_KP_MINUS},
2020
{SDLK_KP_PLUS, SB_KEY_KP_PLUS},
2121
{SDLK_KP_EQUALS, '='},
22+
{SDLK_TAB, SB_KEY_TAB},
2223
{SDLK_BACKSPACE, SB_KEY_BACKSPACE},
2324
{SDLK_DELETE, SB_KEY_DELETE},
2425
{SDLK_UP, SB_KEY_UP},

src/ui/textedit.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ const int theme3[] = {
6464
};
6565

6666
const int theme4[] = {
67-
0x222228, 0x222228, 0xa7aebc, 0x484f5f, 0xa7aebc, 0x00bb00,
68-
0xf4f9f4, 0xe1e1e1, 0xefeff0, 0x1f51eb, 0x000000, 0xebedef,
69-
0x0083f8, 0xff9d00, 0x0000ff, 0xc679dd, 0x0083f8, 0
67+
0x4f4a44, 0x222228, 0x77839b, 0x484f5f, 0xa7aebc, 0x5f9e59,
68+
0xcdc0b0, 0xe1e1e1, 0xefeff0, 0x1f51eb, 0x000000, 0xcbb8a2,
69+
0x4c9f9a, 0xaf5fd6, 0x0000ff, 0xc679dd, 0x0083f8, 0
7070
};
7171

7272
int g_user_theme[] = {
@@ -130,10 +130,6 @@ int compareIntegers(const void *p1, const void *p2) {
130130
return i1 < i2 ? -1 : i1 == i2 ? 0 : 1;
131131
}
132132

133-
void init_edit_markers() {
134-
135-
}
136-
137133
//
138134
// EditTheme
139135
//

0 commit comments

Comments
 (0)