# Suggestions when coming from QTTabBar

**URL:** https://resource.dopus.com/t/suggestions-when-coming-from-qttabbar/34401
**Category:** Help & Support
**Created:** [January 23, 2020, 12:16am UTC](https://resource.dopus.com/t/suggestions-when-coming-from-qttabbar/34401 "2020-01-23T00:16:14Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)
#### Post date: [January 23, 2020, 2:19am UTC](https://resource.dopus.com/t/suggestions-when-coming-from-qttabbar/34401/2 "2020-01-23T02:19:32Z")

</div>

General note:

> [@Ask one question per thread](https://resource.dopus.com/t/ask-one-question-per-thread/5444):
>
> In general, please ask only one question per thread, unless your questions are closely related. Similarly, if your question is answered and you then have a new, unrelated question, please post it in a new thread and do not add it to your existing th…

* * *

> [@dakusan](#):
>
> Cannot use tab key for hotkeys (I use ctrl+tab to shift between tabs)

Seems to work fine here:

 ![image](https://resource.dopus.com/uploads/default/original/3X/1/5/15f0b45ceac3ef54a4ad0321592842cf67f161cf.png)

If your issue was that typing the Tab key into the hotkey field tabbed you to the next field, you can use the menu on the right of the field to insert special keys like Tab and Enter. (Hold Ctrl and click the menu item if you want Ctrl + Tab.) See also: [Using the Hotkey Control](https://www.gpsoft.com.au/help/opus12/index.html#!Documents/Using_the_Hotkey_Control.htm).

> [@dakusan](#):
>
> There is only regular expressions for filter. Not for select, find, or search.

- Select: Edit \> Select By Pattern \> Advanced allows you to use regular expressions.

- Find: The Find \> Advanced tab is similar and allows regular expressions.

- Search: What Windows Search supports is up to it. We just pass the query over to it.

> [@dakusan](#):
>
> The OnTabClick event does not catch normal clicks, or clicks with just shift key.

Clicking tabs with shift triggers the event fine here, using a simple test script:

```javascript
// Called by Directory Opus to initialize the script
function OnInit(initData)
{
	initData.name = "test";
	initData.version = "1.0";
	initData.copyright = "(c) 2020 Leo Davidson";
	initData.desc = "";
	initData.default_enable = true;
	initData.min_version = "12.0";
}

// Called when a tab is clicked with a qualifier key held down
function OnTabClick(tabClickData)
{
	DOpus.Output("Clicked");
}

```

Re clicking with no qualifiers, that's intentional, and documented in the manual. `OnTabClick` exists is to let you add new, custom actions when holding qualifiers, but not to replace the basic/default action of changing tabs when a tab is clicked with nothing held down.

What are you aiming to do where replacing that action would make sense without anything held down?

If you want an event which happens when the active tab is changed, use `OnActivateTab` instead.

> [@dakusan](#):
>
> The OnDoubleClick would be nice if it also supported normal clicks.

The issue there is mainly performance. Running scripts is quite slow, and running a script every time the file selection changed could really slow things down.

---

_[View the full topic](https://resource.dopus.com/t/suggestions-when-coming-from-qttabbar/34401)._
