To assign a shortcut for a user button

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
John_C
Posts: 336
Joined: 16 May 2018 20:04

To assign a shortcut for a user button

Post 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?

highend
Posts: 13308
Joined: 06 Feb 2011 00:33

Re: To assign a shortcut for a user button

Post by highend »

Sure. UDC, Run script with a kbd shortcut. Lookup the button script command...
One of my scripts helped you out? Please donate via Paypal

John_C
Posts: 336
Joined: 16 May 2018 20:04

Re: To assign a shortcut for a user button

Post 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?

highend
Posts: 13308
Joined: 06 Feb 2011 00:33

Re: To assign a shortcut for a user button

Post by highend »

Afaik not
One of my scripts helped you out? Please donate via Paypal

Post Reply