summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-09-19 11:17:56 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-09-19 11:17:56 +0300
commit13911163bb170d7c98cdbd9c3ff0af7fdb62fe84 (patch)
tree3c2bba6847f4097300f62c63369190346334b96c
parent70bdd01fbb3b2a99ddb4358a5fc7c7786f2769d6 (diff)
LabelWidget: No Space for keyboard trigger
Space is used for scrolling the page (by default), so currently it's better to not use that for buttons as well.
-rw-r--r--src/ui/labelwidget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/labelwidget.c b/src/ui/labelwidget.c
index 9c8fb2ee..d48ed9e8 100644
--- a/src/ui/labelwidget.c
+++ b/src/ui/labelwidget.c
@@ -172,7 +172,7 @@ static iBool processEvent_LabelWidget_(iLabelWidget *d, const SDL_Event *ev) {
172 return iTrue; 172 return iTrue;
173 } 173 }
174 if (isFocused_Widget(d) && mods == 0 && 174 if (isFocused_Widget(d) && mods == 0 &&
175 (sym == SDLK_SPACE || sym == SDLK_RETURN || sym == SDLK_KP_ENTER)) { 175 (sym == SDLK_RETURN || sym == SDLK_KP_ENTER)) {
176 trigger_LabelWidget_(d); 176 trigger_LabelWidget_(d);
177 refresh_Widget(d); 177 refresh_Widget(d);
178 return iTrue; 178 return iTrue;