aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-03-22 13:10:52 +0100
committerdec05eba <dec05eba@protonmail.com>2021-03-22 13:10:52 +0100
commit795bb9eb3e46c4f9edece953b69b4a66cde34e24 (patch)
treeacd87b8cb5bf2857e21d1bfe4b65145a8805cad8
parentd4a598833dde476ad92592c6adc2afc2ebc61af0 (diff)
Ignore first 'i' after pressing 'i' to enable text entry on 4chan and matrix
-rw-r--r--src/QuickMedia.cpp6
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))