mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Place the cursor better on buttons.
Stop field display attributes getting clobbered.
This commit is contained in:
parent
7f8bb70cff
commit
ba1efeeea4
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue