diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -117,13 +117,15 @@ int main(void) { buffer_cursor_move_down(&text_buffer); break; case SDLK_RETURN: - //buffer_insert_text_at_cursor(buffer, U"\n", 1); + buffer_insert_char_at_cursor(&text_buffer, U'\n'); + break; + case SDLK_TAB: + buffer_insert_char_at_cursor(&text_buffer, U'\t'); break; } } break; case SDL_TEXTINPUT: { char *text = event.text.text; - printf("TEXT: %s\n",text); buffer_insert_utf8_at_cursor(&text_buffer, text); } break; } |