aboutsummaryrefslogtreecommitdiff
path: root/src/QuickMedia.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/QuickMedia.cpp')
-rw-r--r--src/QuickMedia.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 6b9dcf2..db244c8 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -307,6 +307,7 @@ namespace QuickMedia {
} else if(handle_searchbar && event.type == sf::Event::TextEntered) {
search_bar->onTextEntered(event.text.unicode);
}
+ search_bar->on_event(event);
}
static std::string base64_encode(const std::string &data) {
@@ -1016,7 +1017,7 @@ namespace QuickMedia {
continue;
}
- const int UI_HIDE_TIMEOUT = 4500;
+ const int UI_HIDE_TIMEOUT = 2500;
if(cursor_hide_timer.getElapsedTime().asMilliseconds() > UI_HIDE_TIMEOUT) {
cursor_visible = false;
window.setMouseCursorVisible(false);
@@ -1873,6 +1874,8 @@ namespace QuickMedia {
while (current_page == Page::IMAGE_BOARD_THREAD) {
while (window.pollEvent(event)) {
+ search_bar->on_event(event);
+
if (event.type == sf::Event::Closed) {
current_page = Page::EXIT;
} else if(event.type == sf::Event::Resized) {