aboutsummaryrefslogtreecommitdiff
path: root/include/SearchBar.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/SearchBar.hpp')
-rw-r--r--include/SearchBar.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/SearchBar.hpp b/include/SearchBar.hpp
index e5245be..6b7ca6d 100644
--- a/include/SearchBar.hpp
+++ b/include/SearchBar.hpp
@@ -15,8 +15,7 @@ namespace sf {
namespace QuickMedia {
using TextUpdateCallback = std::function<void(const std::string &text)>;
- // Return true to consume the search (clear the search field)
- using TextSubmitCallback = std::function<bool(const std::string &text)>;
+ using TextSubmitCallback = std::function<void(const std::string &text)>;
using TextBeginTypingCallback = std::function<void()>;
using AutocompleteRequestCallback = std::function<void(const std::string &text)>;
@@ -69,6 +68,7 @@ namespace QuickMedia {
bool draw_logo;
bool needs_update;
bool input_masked;
+ bool typing;
float vertical_pos;
sf::Clock time_since_search_update;
};