InputHandler: selection first item when entering menu mode
This commit is contained in:
parent
ad7145dda4
commit
608098cdde
|
@ -188,6 +188,7 @@ public:
|
||||||
DisplayCoord menu_pos{ context().ui().dimensions().line, 0_char };
|
DisplayCoord menu_pos{ context().ui().dimensions().line, 0_char };
|
||||||
context().ui().menu_show(choices, menu_pos, get_color("MenuForeground"),
|
context().ui().menu_show(choices, menu_pos, get_color("MenuForeground"),
|
||||||
get_color("MenuBackground"), MenuStyle::Prompt);
|
get_color("MenuBackground"), MenuStyle::Prompt);
|
||||||
|
context().ui().menu_select(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void on_key(Key key) override
|
void on_key(Key key) override
|
||||||
|
|
Loading…
Reference in New Issue
Block a user