This will set the command to execute when accel
is pressed.
If command is null, the accelerator will be cleared. If accelerator is null
, all accelerators for command
will be cleared.
this | |
command |
the command to be executed |
accel |
the shortcut accelerator |
phase |
the phase to activate within, or 0 for the default |