[LMP] Refactored shortcuts setting into a separate method.