diff options
-rw-r--r-- | src/tk/text.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tk/text.c b/src/tk/text.c index e5ae0b1..2a77691 100644 --- a/src/tk/text.c +++ b/src/tk/text.c @@ -81,6 +81,12 @@ _mftk_text_key_event(struct mftk_widget *w, SDL_Event *e) t->cur = len; } break; + case SDLK_HOME: + t->cur = 0; + break; + case SDLK_END: + t->cur = strlen(t->val); + break; default: break; } |