fix shift-F1..4. Closes T1564.