From 25b84292bf3808d8fa4ab0797586d50009fcf978 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 28 Aug 2011 18:12:27 +0000 Subject: Moved ui::InputBox command completion into a seperate method instead of hardcoded to the tab key. --- src/ui/inputbox.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/ui/inputbox.h') diff --git a/src/ui/inputbox.h b/src/ui/inputbox.h index d3e9d2c..5da9bc5 100644 --- a/src/ui/inputbox.h +++ b/src/ui/inputbox.h @@ -35,12 +35,15 @@ public: void set_max(const size_t max); /// return the text displayed by the label - inline std::string const &text() const { + inline const std::string &text() const { return input_text; } - + /// clear the text void clear(); + + /// run command completion + void complete(); protected: /// draw the widget -- cgit v1.2.3