summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-01-02 19:19:41 +0000
committerMaxime Coste <frrrwww@gmail.com>2014-01-02 19:19:41 +0000
commit608098cddea19bd79940cedd95149f39a36c3f07 (patch)
tree2a9d87c8bdbb4bfd3cc6db10a7752d40ff48b71f /src/input_handler.cc
parentad7145dda445c26ad5b0d01a78f05700126dbd98 (diff)
InputHandler: selection first item when entering menu mode
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc
index 34e30f45..8ed938ec 100644
--- a/src/input_handler.cc
+++ b/src/input_handler.cc
@@ -188,6 +188,7 @@ public:
DisplayCoord menu_pos{ context().ui().dimensions().line, 0_char };
context().ui().menu_show(choices, menu_pos, get_color("MenuForeground"),
get_color("MenuBackground"), MenuStyle::Prompt);
+ context().ui().menu_select(0);
}
void on_key(Key key) override