summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/bindingswidget.c2
-rw-r--r--src/ui/keys.c2
-rw-r--r--src/ui/labelwidget.c3
3 files changed, 5 insertions, 2 deletions
diff --git a/src/ui/bindingswidget.c b/src/ui/bindingswidget.c
index 82763416..23fbbe88 100644
--- a/src/ui/bindingswidget.c
+++ b/src/ui/bindingswidget.c
@@ -180,7 +180,7 @@ static void draw_BindingItem_(const iBindingItem *d, iPaint *p, iRect itemRect,
180 fg, 180 fg,
181 range_String(&d->label)); 181 range_String(&d->label));
182 drawAlign_Text(d->isWaitingForEvent ? uiContent_FontId : font, 182 drawAlign_Text(d->isWaitingForEvent ? uiContent_FontId : font,
183 init_I2(right_Rect(itemRect) - 3 * gap_UI, 183 init_I2(right_Rect(itemRect) - 6 * gap_UI,
184 y - (lineHeight_Text(uiContent_FontId) - line) / 2), 184 y - (lineHeight_Text(uiContent_FontId) - line) / 2),
185 fg, 185 fg,
186 right_Alignment, 186 right_Alignment,
diff --git a/src/ui/keys.c b/src/ui/keys.c
index 04b4793b..d759d40e 100644
--- a/src/ui/keys.c
+++ b/src/ui/keys.c
@@ -65,6 +65,8 @@ static void bindDefaults_(void) {
65 bindLabel_Keys(11, "scroll.step arg:1", SDLK_DOWN, 0, "Scroll down"); 65 bindLabel_Keys(11, "scroll.step arg:1", SDLK_DOWN, 0, "Scroll down");
66 bindLabel_Keys(20, "scroll.page arg:-1", SDLK_PAGEUP, 0, "Scroll up half a page"); 66 bindLabel_Keys(20, "scroll.page arg:-1", SDLK_PAGEUP, 0, "Scroll up half a page");
67 bindLabel_Keys(21, "scroll.page arg:1", SDLK_PAGEDOWN, 0, "Scroll down half a page"); 67 bindLabel_Keys(21, "scroll.page arg:1", SDLK_PAGEDOWN, 0, "Scroll down half a page");
68 bindLabel_Keys(30, "navigate.back", navigateBack_KeyShortcut, "Navigate back");
69 bindLabel_Keys(31, "navigate.forward", navigateForward_KeyShortcut, "Navigate forward");
68 /* The following cannot currently be changed (built-in duplicates). */ 70 /* The following cannot currently be changed (built-in duplicates). */
69 bind_Keys(1000, "scroll.page arg:-1", SDLK_SPACE, KMOD_SHIFT); 71 bind_Keys(1000, "scroll.page arg:-1", SDLK_SPACE, KMOD_SHIFT);
70 bind_Keys(1001, "scroll.page arg:1", SDLK_SPACE, 0); 72 bind_Keys(1001, "scroll.page arg:1", SDLK_SPACE, 0);
diff --git a/src/ui/labelwidget.c b/src/ui/labelwidget.c
index b4ba79fe..9c489123 100644
--- a/src/ui/labelwidget.c
+++ b/src/ui/labelwidget.c
@@ -293,7 +293,7 @@ void init_LabelWidget(iLabelWidget *d, const char *label, const char *cmd) {
293 setFlags_Widget(&d->widget, hover_WidgetFlag, d->click.button != 0); 293 setFlags_Widget(&d->widget, hover_WidgetFlag, d->click.button != 0);
294 d->alignVisual = iFalse; 294 d->alignVisual = iFalse;
295 updateSize_LabelWidget(d); 295 updateSize_LabelWidget(d);
296 updateKey_LabelWidget_(d); 296 updateKey_LabelWidget_(d); /* could be bound to another key */
297} 297}
298 298
299void deinit_LabelWidget(iLabelWidget *d) { 299void deinit_LabelWidget(iLabelWidget *d) {
@@ -342,6 +342,7 @@ iLabelWidget *newKeyMods_LabelWidget(const char *label, int key, int kmods, cons
342 iLabelWidget *d = new_LabelWidget(label, command); 342 iLabelWidget *d = new_LabelWidget(label, command);
343 d->key = key; 343 d->key = key;
344 d->kmods = kmods; 344 d->kmods = kmods;
345 updateKey_LabelWidget_(d); /* could be bound to a different key */
345 return d; 346 return d;
346} 347}
347 348