Mozers:

You just forgot the final | character, that's why it didn't work. I'm talking 
about your first try, that is. The other ones never work. You can't using 
command.shortcut, you have to use user.shortcuts... the method is a little 
trickier than you may think (hence my email about including this in the 
documentation). Here's how it works, hope it is helpful to someone.

You set a command, but without a name, in order to hide it in the menu:
command.name.49.*=
command.49.*=echo test

Now here's the trick: you can't use command.shortcut.49.* because that only 
works if there's an entry in the menu. The alternative is user.shortcuts. I 
quote from the documentation: "Define keys that perform commands. This is a '|' 
delimited list of keys and the commands they produce. The commands are either 
string or numeric IDs."
So you need the numeric ID to the command you define earlier. That's easy. It's 
IDM_TOOLS (which is 1100) + the command ID, in our case 49. This gives us 
something like:
user.shortcuts=\
Ctrl+Shift+A|1149|

Off course you can add other shortcuts to user.shortcuts. By the way, some are 
already defined in the global properties file, so you might want to add them to 
your user.shortcuts, else you'll overwrite them.

Nicolas

_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to