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: 207
Joined: 16 May 2018 20:04

To assign a shortcut for a user button

Post by John_C » 02 Apr 2020 20:29

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: 8926
Joined: 06 Feb 2011 00:33

Re: To assign a shortcut for a user button

Post by highend » 02 Apr 2020 20:41

Sure. UDC, Run script with a kbd shortcut. Lookup the button script command...
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

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

Re: To assign a shortcut for a user button

Post by John_C » 02 Apr 2020 21:53

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: 8926
Joined: 06 Feb 2011 00:33

Re: To assign a shortcut for a user button

Post by highend » 02 Apr 2020 22:15

Afaik not
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

Post Reply