PopSearch 1.7.9 & Moofmarks 1.4.4
These updates include a usability tweak and a couple of bug fixes.
The tweak only makes a difference if you’ve set the option to open search results (in PopSearch) or the selected bookmark (in Moofmarks) in a new tab by default. From now on, if the current tab is empty, this setting will be ignored, and the search results or bookmark will open in this tab.
The reasoning is: if the current tab is empty, why not just use it? Why open another empty tab just to load the search results or the bookmark? Thanks go to a really nice and helpful user for pointing this out to me.
The bugs that were fixed are as follows. First, in Safari 5.1, when either extension opened a new tab, the keyboard focus would move to the address bar rather than the document in the new tab as it did in Safari 5.0. This is not really a bug of the extension, but I didn’t like it, so I fixed things so the keyboard focus would be with the new document.
The second bug also involves keyboard focus, but it is rather more obscure. If you used the new (Safari 5.1-only) popover UI for either extension, and if the extension opened a new tab, and if you then closed the new tab, thus returning to the old tab—assuming you hadn’t closed the old tab in the meantime—the document in the old tab would have lost the keyboard focus, because the popover would have had it at the time the new tab was opened. This was annoying, because hotkeys would no longer work on the old tab unless you clicked inside it. To fix this, I changed the extensions so that when they open a new tab, they will first close themselves, and only then open the new tab. Closing the popover before opening the new tab has the effect of returning the keyboard focus to the old tab very briefly before the new tab is opened. That’s enough to ensure that when the old tab is again activated, the keyboard focus will be on the document, not in la-la land.

