summaryrefslogtreecommitdiff
path: root/src/ui/inputwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-16 22:00:44 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-16 22:00:44 +0300
commit6ace08ae5a11e705a18c10da85f617532b4a9862 (patch)
treebb5cb46fa45221dffc677a10e6a5cca68effd0ee /src/ui/inputwidget.c
parent69ea47be1cee7298b65db8104f1c88e51554ba48 (diff)
Keyboard-based link navigation; general improvements
Diffstat (limited to 'src/ui/inputwidget.c')
-rw-r--r--src/ui/inputwidget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c
index 8534c54f..d367952d 100644
--- a/src/ui/inputwidget.c
+++ b/src/ui/inputwidget.c
@@ -181,7 +181,7 @@ static iBool processEvent_InputWidget_(iInputWidget *d, const SDL_Event *ev) {
181 setFocus_Widget(as_Widget(d)); 181 setFocus_Widget(as_Widget(d));
182 return iTrue; 182 return iTrue;
183 } 183 }
184 if (ev->type == SDL_KEYUP) { 184 if (ev->type == SDL_KEYUP && isFocused_Widget(w)) {
185 return iTrue; 185 return iTrue;
186 } 186 }
187 const size_t curMax = iMin(size_Array(&d->text), d->maxLen - 1); 187 const size_t curMax = iMin(size_Array(&d->text), d->maxLen - 1);