A friend was having trouble figuring out how to assign "Ctrl + +" as a shortcut key to a ToolStripMenuItem. I pointed out that the Keys.OemPlus key would work and the display string for the shortcut needed to be set, but the Keys enumeration mystifies me.
What's the deal with these "OEM" keys? I've done a little searching and it seems like it's because the keys are only supported in Win2k or later, but that seems ridiculous as I'm certain people have been using the plus key decades before Win2k. Why's there no "OemEquals"? Are there other keys that are completely absent from the Keys enumeration?
I'm mostly looking for an answer to why these special-named values exist, but I'd love to hear discussion about the other questions. Is it safe to assume that since the plus sign is on top of the equals sign on my keyboard that using OemPlus and checking the Shift modifier key is an OK to tell if Ctrl + = was clicked? Are there other keys that were omitted?
Note this is not a WPF question, though the System.Windows.Forms.Keys
and System.Windows.Input.Key enumerations look identical (though Key
is named incorrectly according to the Framework Design Guidelines ;))