Page 1 of 1

To assign a shortcut for a user button

Posted: 02 Apr 2020 20:29
by John_C
I have a "Tab Management" user button on the toolbar which is assigned to "tab_management.xys" script. When I click this button, there is a selection of 5 different actions:

* Reload the Current Tab
* Duplicate the Current Tab
* Close Other Tabs
* Close Tabs to the Right
* Reopen the Closed Tab

Is there a way to assign a shortcut to this button?

Re: To assign a shortcut for a user button

Posted: 02 Apr 2020 20:41
by highend
Sure. UDC, Run script with a kbd shortcut. Lookup the button script command...

Re: To assign a shortcut for a user button

Posted: 02 Apr 2020 21:53
by John_C
Thanks, highend.

I can use either ::button "ctb5"; or ::load 'tab_management.xys';, but both these solutions has a drawback: the menu is shown near the mouse cursor. As I understand, it's not possible to show it near the button?

Re: To assign a shortcut for a user button

Posted: 02 Apr 2020 22:15
by highend
Afaik not