Hi Larry,
The Sparky keyboard shortcuts are defined in the C++ code
(command.cc). You could edit them and recompile Sparky but that is a
good bit of trouble. Here's a simpler way if you just want to add a new
shortcut that does the same thing as an existing one. Edit your Sparky
distribution file
sparky/python/sparky/sparky_init.py
with a text editor to look like the following
def initialize_session(session):
session.add_command('zz', 'My Shortcuts/Peak List',
lambda: session.command_characters('lt'))
This defines the shortcut zz to behave as if you typed lt (show peak
list) and adds a menu entry "Extensions / My Shortcuts / Peak List
(zz)". You can add additional shortcuts by just having more
session.add_command() lines.
Tom
larryrmasterson wrote:
>
> I would like to reassign the two letter shortcut for some functions in
> sparky. Could someone let me know how this can be done?
>
> Thanks!
>
>