Print Thread
Alt shortcut key for plugin menu
#40368 05/14/11 10:03 PM
Joined: May 2005
Posts: 36
M
matjazc Offline OP
Member
OP Offline
Member
M
Joined: May 2005
Posts: 36
This is simplified description:

I have created a plugin and it's functions are under new menu named "bgTransform".

It opens by default with "Alt+b", event when I don't put ampersand in front of it. So these entries in source code both work:

bgTransform / f1
&bgTransform / f2

However I would like to have another menu named "fTransform" and access it with "Alt+z" ( since "Alt+f" opens file menu by default ).

Can it be done somehow ?


Re: Alt shortcut key for plugin menu
matjazc #40379 05/16/11 10:05 AM
Joined: Aug 1999
Posts: 22,206
Member
Offline
Member
Joined: Aug 1999
Posts: 22,206
You can assign a key through Tools > Preferences > Key configuration. All Plug-In menu items will be listed there.


Marco Kalter
Allround Automations
Re: Alt shortcut key for plugin menu
Marco Kalter #40404 05/16/11 04:17 PM
Joined: May 2005
Posts: 36
M
matjazc Offline OP
Member
OP Offline
Member
M
Joined: May 2005
Posts: 36
Yes, I am aware of that.
But my plugin has 23 functions as of now in three main menus and that is a lot of configuring and almost impossible to remember all.

Having remembered two or three Alt+"some letter" for opening main plugin menus would be simpler.
What I would need is something like that:

&&cMyMenu

... where "c" letter would not be visible, but would open a menu when pressed after Alt.

Thanks for answer anyway.



Re: Alt shortcut key for plugin menu
matjazc #40431 05/17/11 10:38 AM
Joined: Jul 2004
Posts: 281
The Netherlands
Member
Offline
Member
Joined: Jul 2004
Posts: 281
The Netherlands
I'm no good at writing plug-ins, but wouldn't it be possible to write three functions which open your main plug-in menu screens and assign short-cuts to those?


Been there, done that, Got the T-Shirt
Re: Alt shortcut key for plugin menu
Marco van der Linden #40460 05/18/11 09:05 AM
Joined: May 2005
Posts: 36
M
matjazc Offline OP
Member
OP Offline
Member
M
Joined: May 2005
Posts: 36
Yes it would.
The problem is that I am invoking plugin functions directly on data ( like Edit->Selection->Uppercase ).
There is not much use of making GUI screen for this.
You did give me an idea though; tnx.


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.030s Queries: 15 (0.009s) Memory: 2.5124 MB (Peak: 3.0380 MB) Data Comp: Off Server Time: 2024-04-30 01:40:10 UTC
Valid HTML 5 and Valid CSS