aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-11-09 00:08:53 +0100
committerdec05eba <dec05eba@protonmail.com>2020-11-09 00:08:53 +0100
commit4af367373f6f92b0fc1d79b2871fa942e1eb86fa (patch)
treedcf40ea78a8973069e3cbd5889c7a379a217b453 /include
parentf8748d14ea11d6d53ad46aee2832180daf05fb77 (diff)
Matrix: update user display name/avatar when updated in /sync; fix backspace search delay
Diffstat (limited to 'include')
-rw-r--r--include/SearchBar.hpp4
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;
};