I've completely rewritten the code used to record and detect the hotkey that invokes PopSearch.
Before now, it was possible to specify a hotkey that used some combination of the Command, Option, and Shift keys as modifiers, but the hotkey input field on the settings page was not very clear about just what key combo you had inputted. Also, if you tried to use a key combo involving the Control key, the results were unpredictable.
The new code changes all that. The hotkey input field now accurately reflects which modifier keys you pressed when you recorded the hotkey, and the Control key is fully supported. Also, you can now specify any combination of modifiers for your hotkey in the PopSearch section of Safari's extensions manager.
(Unfortunately, Windows users still cannot use the Ctrl key as part of their PopSearch hotkey, due to limitations in the way Safari for Windows responds to Ctrl keypresses. The Win and Alt keys also remain, sadly, unsupported, so Windows users can only use unmodified and Shift-modified hotkeys.)
I also added two new modifier keys to the search popup itself. As some of you know, it's always been possible to temporarily reverse the "Open search results in a new tab" setting by holding down the Command key when you press Enter or click the Search button to execute a search. (So, if you have PopSearch set to open search results in the current tab by default, pressing Command-Enter will instead open them in a new tab.) Similarly, you can reverse the "Open new tab in background" setting by holding down the Shift key when executing a search. But now, you can also temporarily reverse the "Put new tab next to current tab" setting by holding down the Control key. And you can reverse the "Use new window instead of new tab" setting by holding down the Option key. Got all that?
To recap, the table below shows what each modifier key does when executing a PopSearch search if all of the tab settings are set to the defaults. If you change any of the tab settings, the relevant modifier key will have the opposite meaning.
| Modifier | Effect |
| Command |
Open search results in a new tab. |
| Option |
If opening search results in a new tab, use a new window instead. |
| Shift |
If opening search results in a new tab, don't focus the tab. |
| Control |
If opening search results in a new tab, put the tab at the end of the tab bar. |
Note that the available modifier keys are different for Windows users. They can only use the Ctrl key to do what the Mac's Command key does, and the Shift key. The Alt and Win keys have no effect on PopSearch.