Sets the accelerator of this.
accelerator must be in the format [class@ShortcutLabel] accepts.
accelerator
a shortcuts item
the accelerator to use