From 4af367373f6f92b0fc1d79b2871fa942e1eb86fa Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 9 Nov 2020 00:08:53 +0100 Subject: Matrix: update user display name/avatar when updated in /sync; fix backspace search delay --- include/SearchBar.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') 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; }; -- cgit v1.2.3