summaryrefslogtreecommitdiff
path: root/src/ui/bindingswidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-04-08 13:57:12 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-04-08 13:57:12 +0300
commit4ee6a68c492486baf8e7d78dfb7731c0cb08d985 (patch)
treec6b8c7230af6123160707a79dfbbfd53ef003029 /src/ui/bindingswidget.c
parente02ffdc898096a9cfeba3bf56b1a1bf37aa5642e (diff)
Update keybindings list when language changes
Diffstat (limited to 'src/ui/bindingswidget.c')
-rw-r--r--src/ui/bindingswidget.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/bindingswidget.c b/src/ui/bindingswidget.c
index dc23dd6e..6e8fa5b5 100644
--- a/src/ui/bindingswidget.c
+++ b/src/ui/bindingswidget.c
@@ -179,6 +179,10 @@ static iBool processEvent_BindingsWidget_(iBindingsWidget *d, const SDL_Event *e
179 postCommand_App("bindings.changed"); 179 postCommand_App("bindings.changed");
180 return iTrue; 180 return iTrue;
181 } 181 }
182 else if (equal_Command(cmd, "lang.changed")) {
183 updateItems_BindingsWidget_(d);
184 return iFalse;
185 }
182 if (ev->type == SDL_MOUSEBUTTONDOWN && ev->button.button == SDL_BUTTON_RIGHT) { 186 if (ev->type == SDL_MOUSEBUTTONDOWN && ev->button.button == SDL_BUTTON_RIGHT) {
183 if (!isVisible_Widget(d->menu)) { 187 if (!isVisible_Widget(d->menu)) {
184 d->contextPos = hoverItemIndex_ListWidget(d->list); 188 d->contextPos = hoverItemIndex_ListWidget(d->list);