Describe the bug
This started with the latest 5.4.1 beta.5 (I skipped beta.6) and continues with the current 5.4.3: while typing in any service, or at least any chat like Slack, WhatsApp, Messenger etc., Ferdi looses focus and I have to click into the text input field again to continue typing.
The frequency of this happening is irregular, but I can hardly finish any message without it happening at least once.
Desktop (please complete the following information):
(Have not tried 5.4.4 beta.1 yet)
Same thing happening to me
OS: Windows 10 Enterprise 1909
Version 5.4.1 beta-4
Same thing's happening here.
Though sometimes it seems like Microsoft Teams is the problem. If an input box loses focus somewhere, I can usually find the jumbled remains of text in Microsoft Teams for some reason.
Not sure if this is a clue, or if my experience is a one-off.
I don't even know, what Microsoft Teams is ;) My lost input usually goes nowhere at all.
I suppose, where the focus goes is rather random, at the center is Ferdi loosing focus. Because if certain apps stole the focus, other apps would loose focus, too, which is not the case.
Any ideas yet anyone? This makes using Ferdi virtually impossible. I will have to go back to an older Version 5.4.1 beta-3 or so that had other problems until a solution is found :|
Yes I need this fixed! This problem happened just now as I was typing this.
On Wed, Feb 5, 2020 at 6:12 PM VOOM108 notifications@github.com wrote:
Any ideas yet anyone? This makes using Ferdi virtually impossible. I will
have to go back to an older Version 5.4.1 beta-3 or so that had other
problems until a solution is found :|—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/getferdi/ferdi/issues/343?email_source=notifications&email_token=AEC33AJAG7OWHSCGB5S53TTRBNBW5A5CNFSM4KPE4X22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEK5KONY#issuecomment-582657847,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEC33AMVVHWIEFKINUIRFITRBNBW5ANCNFSM4KPE4X2Q
.
This seems to be a Windows-only problem as I can't reproduce it on macOS.
Maybe this helps to find sth: I went back to the last version I remember to work flawlessly for me concerning this: 5.4.1 beta-4 The issue persists. I am pretty sure this occured first - for me - on beta-5
Same thing happening to me
OS: Windows 10 Enterprise 1909
Version 5.4.1 beta-4
While this user refers to beta-4 as well
Of course there could be a recent windows-update that conflicts with sth only Ferdi does, also for versions further back.
Could you please provide me your Ferdi's debug information? In the menubar under "Help" > "Copy Debug Information"
Since downgrading did not help back at 5.4.4-b1
Does anyone of the affected use DisplayFusion? (Just an idea, though I made no recent changes to the DF-settings before this started happening)
Does anyone of the affected use DisplayFusion? (Just an idea, though I made no recent changes to the DF-settings before this started happening)
Nope. I don't use DisplayFusion
I did some more testing with two focus-logging tools, namely happydroid focus and "Windows Focus Logger" by Adminscope
The result is, that both note no other process or app stealing focus from ferdi. They register nothing, while typing is blocked and the focus is taken out of the respective input form of whatever service within ferdi. So that looks like some internal process of ferdi itself takes the focus out of the input field randomly.
I will start investigating, if some service could cause this. Will remove the least used ones and maybe change some settings. I have also turned off spell checking for now.
The issue still is a big fat nuisance while using ferdi for me :|
Could it be related to the updater being broken? Sometimes I notice Ferdi jumping in my macOS task bar when not focused, maybe that make loose focus when focused? without prompting me of an udpate (on an old install; the updater is broken there).
For what it's worth, I have been experiencing this too in Slack. I am on Mac Catalina with Ferdi version 5.4.3 (5.4.3.994)
@justinebateman Can you help me reproduce this? I am using 5.4.3 (WIndows 10) and can't seem to reproduce this.
I can't say for sure what the problem is, but I can back up @ccioanca 's statement that
"Though sometimes it seems like Microsoft Teams is the problem. If an input box loses focus somewhere, I can usually find the jumbled remains of text in Microsoft Teams for some reason."
The exact same thing was happening to me, I was typing in slack, the textbox loses focus, I switch to Teams and I can see the remainder of what I was typing in the Teams chatbox.
I removed Teams from my Ferdi completely and I haven't had this happen to me since. I currently have 4 Slack workspaces, and 1 Whatsapp workspace on my Ferdi with no issue.
Others have stated that they don't have Teams in their Ferdi and this is happening to them, so I think the issue is more around a different app "stealing" focus from Slack
This issue started happening for me after updating to 5.5.0-gm. It always happens after a few seconds of typing. Reverting back to 5.4.4-beta.3 fixed it for me.
EDIT: I think I figured out the error. If you have any service like whatsapp which ask to update to Chrome 49 like below, disable that service and then try again. I think it should work.

The whatsapp (or similar services) try to continuously reload the service and hence other services keep losing focus.
@vantezzen I was looking at the latest develop version and could finally manage to reproduce the error - I noticed that in the debug console, as we type in some text field, the recipe webview's initialize function is getting called repeatedly which I suspect could be the reason for losing focus -

Any clue on why it could go into a continuous loop of initializing?
Was looking at the whatsapp recipe and found the following piece of code -
setTimeout(() => {
const elem = document.querySelector('.landing-title.version-title');
if (elem && elem.innerText.toLowerCase().includes('google chrome')) {
window.location.reload();
}
}, 1000);
I inspected the webview loaded inside Ferdi and found that the webview is loaded indefinitely every second for the same css selector

@vantezzen Can we remove the setTimeout() loop if that is not required?
@mahadevans87 I think we can/should 🙏
@kytwb There are atleast 7 recipes which do a setTimeout and do some kind of work repeatedly and that includes Whatsapp, slack, rocket chat, reddit, android messages, facebook pages. I suspect people reporting the issue have atleast one of these services running in Ferdi. It would be good if someone can confirm.
@kytwb There are atleast 7 recipes which do a setTimeout and do some kind of work repeatedly and that includes Whatsapp, slack, rocket chat, reddit, android messages, facebook pages. I suspect people reporting the issue have atleast one of these services running in Ferdi. It would be good if someone can confirm.
Yes, I have WhatsApp and multiple Slack instances running.
I can also confirm - whatsapp and multiple slack instances running. Sounds like you are onto something, fingers crossed this resolves it 🤞
That is reassuring. I will try to fix this and raise a PR later today.
I can also confirm - whatsapp and multiple slack instances running. Sounds like you are onto something, fingers crossed this resolves it 🤞
@justinebateman @basalphenaar Can you confirm if your slack service is set in hibernation mode? And you are losing focus whenever you try to reload slack and start typing?
I don't believe I have hibernation mode switched on

I don't believe I have hibernation mode switched on
ok thanks for that. Can you provide a list of all the services that you are using? This will help me figure out the problem easier and I can focus on those recipes
I can also confirm using WhatsApp and Slack. I don't use hibernation. As mentioned above, changing some settings made the effect disappear, though I am not sure what exactly did the trick. Still using WhatsApp and one Slack instance
I'm using four Slack workspaces and one Whatsapp instance. I did have a Microsoft Teams instance and the issue was worse when I had it, I removed Teams from Ferdi and thought the issue was resolved but I've had it happen once or twice since.
@justinebateman maybe the debug info available via the _Help_ menu could be useful to help debug?
/cc @mahadevans87

Here's mine, I've tried to remove any "sensitive" info, hopefully it helps
Fix submitted by @mahadevans87 is available in v5.5.0-gm.2.
Please let us know if this is still happening with this version, in which case we will re-open 🙏
Thanks, issue has been fixed for me in v5.5.0-gm.2!
Most helpful comment
Thanks, issue has been fixed for me in v5.5.0-gm.2!