Can you add an ESC Key shortcut?
.net, c#, winforms
Solution
I don't think there is a direct solution to this, You can use this workaround, Set the `ShortcutKeyDisplayString` in code
menuStripItem.ShortcutKeyDisplayString = "ESC";
Within the `KeyDown` event of the form check if `ESC` is pressed and `Close()` the form.
Problem
I have a `Menustrip` Item on my `Form`, and it closes my `Form` when I press it. I want to make the shortcut key for my `MenuStrip` Item Esc, but in the "ShorcutKey" settings, it doesn't have an option for Esc, is there any way I can make it do that it is Esc? I have to make it show on the `MenuStrip` Item that Esc is the shortcut key. Doing this does NOT work: ``` menuStripItem.ShortcutKeys = Keys.Escape; ```