Here is the configuration:
I have a test.html file hosted at http://127.0.0.1/test.html. I have a bookmark for that URL in my Firefox browser. I can click with the left or middle button any number of times to open as many tabs as I want, and always focus the only form element on the page.
The problem: To save a lot of time every day (since I open this page about 10,000 times a normal day), I made an AutoHotKey shortcut to open it with the F1 button:
This works, a little. Every time I press F1, it opens the test.html page in Firefox, as if pressing the bookmark in Firefox. Nevertheless, unlike browser clicks, this F1 shortcut method apparently does something differently because in every other page load, it does do not focus the single form element, as if the "autofocus" attribute did not exist.
This has me absolutely baffled. It literally seems to happen every other Once I press F1. Focused, not focused, focused, not focused … No matter how long or short the interval / pause between each key press.
Again, constantly focus the form element each time I click on the bookmark link.
What could be causing this? I can't tell you how much I hate This kind of nonsense, which seems to always happen, no matter what you try to do. It's as if they punish me for wanting to be efficient …