Place the cursor better on buttons.
Stop field display attributes getting clobbered.
This commit is contained in:
parent
62368d936e
commit
f2fb5b52fa
@ -219,6 +219,7 @@ field_action(struct form *form)
|
||||
for (;;) {
|
||||
wattron(form->window, F_SELATTR);
|
||||
disp_action(form, form->current_field);
|
||||
wmove(form->window, field->y, field->x);
|
||||
ch = wgetch(form->window);
|
||||
if (ch == F_ACCEPT) {
|
||||
(*field->field.action->fn)();
|
||||
@ -297,7 +298,6 @@ next_field(struct form *form, int ch)
|
||||
return (0);
|
||||
|
||||
print_status("");
|
||||
field->attr = F_DEFATTR;
|
||||
return (1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user