diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-03-22 13:10:52 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-03-22 13:10:52 +0100 |
commit | 795bb9eb3e46c4f9edece953b69b4a66cde34e24 (patch) | |
tree | acd87b8cb5bf2857e21d1bfe4b65145a8805cad8 /src | |
parent | d4a598833dde476ad92592c6adc2afc2ebc61af0 (diff) |
Ignore first 'i' after pressing 'i' to enable text entry on 4chan and matrix
Diffstat (limited to 'src')
-rw-r--r-- | src/QuickMedia.cpp | 6 |
1 files 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)) |