https://bugs.kde.org/show_bug.cgi?id=483687
Bug ID: 483687 Summary: [Windows] Krita loses modifier and mouse click canvas input due to certain apps aggressively stealing focus Classification: Applications Product: krita Version: 5.2.2 Platform: Microsoft Windows OS: Microsoft Windows Status: REPORTED Severity: normal Priority: NOR Component: General Assignee: krita-bugs-n...@kde.org Reporter: tysont...@gmail.com Target Milestone: --- SUMMARY *** Under Windows, Krita loses modifier and mouse click canvas input due to certain apps aggressively stealing focus. User would experience symptoms like "broken shortcuts" and "unable to pick color by pressing down Ctrl", "unable to call popup palette", "unable to move canvas view by middle button". But in fact, this has nothing to do with shortcuts. For example, single key shortcuts like B, E, etc are not affected. Non canvas input shortcuts with modifier (like Ctrl+S for saving document) are not affected. I found out that this problem has something to do with certain apps aggressively stealing focus -- by them either showing persistent popups, or showing a high priority dialogue that listens to user input in real time, all time. If Krita's focus got stolen, I must first close those popups/dialogues, then restart Krita to get the modifiers and mouse clicks working again. *** STEPS TO REPRODUCE Here I will use Sogou Pinyin (搜狗拼音输入法) ( https://shurufa.sogou.com/) as example. Sogou Pinyin is a popular Chinese input app. Almost every PC in China have this app as the default input method -- meaning it will always have a toolbar on screen. Sogou Pinyin steals focus at EITHER of the following situations: 1. Switching from other Input method to Sogou Pinyin; 2. Sogou Pinyin showing a persistent advertisement popup above its toolbar, you must click the X button to close it; 3. Sogou Pinyin's Voice Input dialogue in open (press the "microphone" button on its toolbar). OBSERVED RESULT If ANY of the situations above happened, Krita immediately loses its modifier key input and middle/right button input. Restarting Krita alone won't solve the issue. Sogou Pinyin's AD Popups/Voice Input dialogues must be closed before restarting Krita to solve this issue. SOFTWARE/OS VERSIONS Windows: Windows 11 23H2 ADDITIONAL INFORMATION There is a KA forum discussion thread about this issue: https://krita-artists.org/t/if-i-click-away-from-krita-my-shortcuts-break-5-1-1/51977/10 Although I think their understanding was inaccurate. I was unable to reproduce any of their claims about WeChat PC client causing issues. This issue is a very serious threat to our userbase in China, given how popular Sogou Pinyin is in this region. I began to hear about this around 2022 when Sogou Pinyin was rewritten. Many users were forced away from Krita because of this issue making them unable to use Krita, and no one seemed to know what caused it. I have reported this issue to Sogou Pinyin. But I doubt they will do anything. It is worth mention that every other art apps aren't being affected like Krita. Maybe they have implemented specific workarounds for this issue. Maybe if Krita can steal focus more aggressively, we can solve this problem. -- You are receiving this mail because: You are watching all bug changes.