summaryrefslogtreecommitdiff
path: root/src/ui/inputwidget.c
diff options
context:
space:
mode:
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);