aboutsummaryrefslogtreecommitdiff
path: root/include/SearchBar.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/SearchBar.hpp')
-rw-r--r--include/SearchBar.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/SearchBar.hpp b/include/SearchBar.hpp
index f1ac3fd..46f4383 100644
--- a/include/SearchBar.hpp
+++ b/include/SearchBar.hpp
@@ -8,7 +8,8 @@
namespace QuickMedia {
using TextUpdateCallback = std::function<void(const sf::String &text)>;
- using TextSubmitCallback = std::function<void(const sf::String &text)>;
+ // Return true to consume the search (clear the search field)
+ using TextSubmitCallback = std::function<bool(const sf::String &text)>;
class SearchBar {
public: