diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/SearchBar.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/SearchBar.hpp b/include/SearchBar.hpp index 78420ec..4c9757c 100644 --- a/include/SearchBar.hpp +++ b/include/SearchBar.hpp @@ -26,7 +26,6 @@ namespace QuickMedia { void on_event(sf::Event &event); void update(); void onWindowResize(const sf::Vector2f &window_size); - void onTextEntered(sf::Uint32 codepoint); void clear(); void append_text(const std::string &text_to_add); bool is_cursor_at_start_of_line() const; @@ -48,6 +47,7 @@ namespace QuickMedia { int autocomplete_search_delay; bool caret_visible; private: + void onTextEntered(sf::Uint32 codepoint); void clear_autocomplete_if_text_not_substring(); void clear_autocomplete_if_last_char_not_substr(); private: @@ -66,7 +66,7 @@ namespace QuickMedia { bool needs_update; bool input_masked; bool typing; - int backspace_seq_count; + bool backspace_pressed; float vertical_pos; sf::Clock time_since_search_update; }; |