Events
From Searchbastard
Events gives you the power to rewire the behaviour of the addon radically. Most events in the system go through this mechanism. When for example a dropdown group opens when you click on it, its because the action of dropdown click is set to "Open dropdown". Ctrl-clicking generally opens a search in a new tab. This is also set up here. If you never use tabs, you might for example decide to rewire this. Ctrl-clicking a multisearch button could for example trigger a secondary multisearch.
The list shows all currently defined events:
Each element in the list have four properties: Element type, Event, Modifiers and Action. The first three are the conditions. When these are met, the action will be trigged.
Contents |
Element types
- Icon
- Dropdown
- Multisearch
- Selection
Icon, Dropdown and Multisearch are three types of items on the searchbar. Selection is selected text in the page.
Events
- Click
- Right-click
- Double-click
- Text-drop
- engineAliasTyped
- groupAliasTyped
"engineAliasTyped" and "groupAliasTyped" only applies to the "selection" element. The other events only applies to non-selection elements
Modifiers
- none
- ctrl
- shift
- ctrl + shift
Actions
The available actions depend on the event and the element type. It can be deferred from these if the item is a group or an engine.
Engine actions:
- Search in current tab
- Search in new tab
- Search in sidebar
- Search in webpanel
- Search in new window
- Search in dialog
- Open context menu
Group actions:
- Search in tabs
- Search in tabs in new window
- Primary search (in each target)
- Secondary search (in each target)
- Multisearch-tabs (in each target)
- Multisearch-frames (in each target)
- Open context menu
- Open dropdown
Modifying an action
Select the row you would like to modify and click "edit". Usually you would only modify the action, because element type, event and modifiers define the row. If you modify one of these, the old row will continue to exist. If there already is row with the new combination, it will be no more.
Adding an action
Start by clicing "Add". Select the element type, event and modifiers. If you choose an already existing combination, the old one will be removed. Finally, choose the action and click Ok.

