From 795bb9eb3e46c4f9edece953b69b4a66cde34e24 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 22 Mar 2021 13:10:52 +0100 Subject: Ignore first 'i' after pressing 'i' to enable text entry on 4chan and matrix --- src/QuickMedia.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index f36d9fb..e18aa9a 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -2768,7 +2768,8 @@ namespace QuickMedia { } event_idle_handler(event); - comment_input.process_event(event); + if(!frame_skip_text_entry) + comment_input.process_event(event); if(navigation_stage == NavigationStage::REPLYING && !frame_skip_text_entry) { // To prevent pressing enter in comment_input text submit from also immediately sending captcha solution.. is there no better solution? if(event.type == sf::Event::KeyPressed && event.key.code == sf::Keyboard::Enter) @@ -4325,7 +4326,8 @@ namespace QuickMedia { base_event_handler(event, PageType::EXIT, tabs[selected_tab].body.get(), nullptr, false, false); event_idle_handler(event); - chat_input.process_event(event); + if(!frame_skip_text_entry) + chat_input.process_event(event); if(draw_room_list) { if(room_tabs[room_selected_tab].body->on_event(window, event)) -- cgit v1.2.3