Correct usage is:
Press 1, press the F# of the weapon you're holding.
Press 2, press the F# of the weapon you're holding.
After this pressing 1 or 2 will change the recoil assigned.
(you can check if it was assigned to the correct slot by checking the letter that precedes the weapon name, m=main, s=secondary)