Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the enum for - (minus/underscore) and = (equal/plus) key in Keys enumeration?

Tags:

c#

winforms

I can't seem to find them here.

I'm trying to get them include in my hotkey selection dialog.

like image 286
sjlewis Avatar asked Oct 19 '10 12:10

sjlewis


1 Answers

Checkout Oem*, from the link that you provided:

OemMinus    The OEM minus key on any country/region keyboard (Windows 2000 or later). 
Oemplus     The OEM plus key on any country/region keyboard (Windows 2000 or later). 

You can have something like:

if (keyData == (Keys.Control | Keys.OemMinus) ) ZoomOutOrSomething();//
like image 83
KMån Avatar answered Sep 21 '22 05:09

KMån