Skip to content
This repository

Added class Keys #286

Open
wants to merge 2 commits into from

2 participants

Ste Jervis Nikhil Kothari
Ste Jervis

The key code enum which can be found in System.Windows.Forms.dll

Ste Jervis Add class Keys
Key code enum which can be found in System.Windows.Forms.dll
6127012
Nikhil Kothari
Owner

Basic question: do the values match what you'd expect from HTML DOM key events across browsers/platforms? In other words compat with WinForms is less important, but compat with the DOM is essential. I see a bunch of values like Oem* and MediaPlayPause etc. that suggests former rather than latter.

These should be marked with [ScriptConstants] ... in other words, the enum doesn't exist in script, and generated script should simply have numeric values. Secondly, they don't belong in mscorlib which is relevant to all scripting environments (eg. nodejs). They likely belong in Script.Web.dll.

If you could address those, I think having the ability to reference constants rather than literal numbers would certainly be useful. Thanks.

Ste Jervis

The values should match the javascript event.which property values. Of all the ones I have tested the values match correctly, the extra ones I left in for completeness but I can remove them if you would prefer?

Thanks for the advice Nikhilk, I'm new to this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 2 unique commits by 1 author.

Nov 14, 2012
Ste Jervis Add class Keys
Key code enum which can be found in System.Windows.Forms.dll
6127012
Nov 15, 2012
Ste Jervis Moved Keys to suitable location and marked as ScriptConstants c670b62
This page is out of date. Refresh to see the latest.
793  src/Libraries/Web/Html/Keys.cs
... ...
@@ -0,0 +1,793 @@
  1
+// Keys.cs
  2
+// Script#/Libraries/CoreLib
  3
+// This source code is subject to terms and conditions of the Apache License, Version 2.0.
  4
+//
  5
+
  6
+using System.Runtime.CompilerServices;
  7
+
  8
+namespace System
  9
+{
  10
+    [ScriptConstants]
  11
+    public enum Keys
  12
+    {
  13
+        // Summary:
  14
+        //     The bitmask to extract modifiers from a key value.
  15
+        Modifiers = -65536,
  16
+        //
  17
+        // Summary:
  18
+        //     No key pressed.
  19
+        None = 0,
  20
+        //
  21
+        // Summary:
  22
+        //     The left mouse button.
  23
+        LButton = 1,
  24
+        //
  25
+        // Summary:
  26
+        //     The right mouse button.
  27
+        RButton = 2,
  28
+        //
  29
+        // Summary:
  30
+        //     The CANCEL key.
  31
+        Cancel = 3,
  32
+        //
  33
+        // Summary:
  34
+        //     The middle mouse button (three-button mouse).
  35
+        MButton = 4,
  36
+        //
  37
+        // Summary:
  38
+        //     The first x mouse button (five-button mouse).
  39
+        XButton1 = 5,
  40
+        //
  41
+        // Summary:
  42
+        //     The second x mouse button (five-button mouse).
  43
+        XButton2 = 6,
  44
+        //
  45
+        // Summary:
  46
+        //     The BACKSPACE key.
  47
+        Back = 8,
  48
+        //
  49
+        // Summary:
  50
+        //     The TAB key.
  51
+        Tab = 9,
  52
+        //
  53
+        // Summary:
  54
+        //     The LINEFEED key.
  55
+        LineFeed = 10,
  56
+        //
  57
+        // Summary:
  58
+        //     The CLEAR key.
  59
+        Clear = 12,
  60
+        //
  61
+        // Summary:
  62
+        //     The ENTER key.
  63
+        Enter = 13,
  64
+        //
  65
+        // Summary:
  66
+        //     The RETURN key.
  67
+        ReturnKey = 13,
  68
+        //
  69
+        // Summary:
  70
+        //     The SHIFT key.
  71
+        ShiftKey = 16,
  72
+        //
  73
+        // Summary:
  74
+        //     The CTRL key.
  75
+        ControlKey = 17,
  76
+        //
  77
+        // Summary:
  78
+        //     The ALT key.
  79
+        Menu = 18,
  80
+        //
  81
+        // Summary:
  82
+        //     The PAUSE key.
  83
+        Pause = 19,
  84
+        //
  85
+        // Summary:
  86
+        //     The CAPS LOCK key.
  87
+        CapsLock = 20,
  88
+        //
  89
+        // Summary:
  90
+        //     The CAPS LOCK key.
  91
+        Capital = 20,
  92
+        //
  93
+        // Summary:
  94
+        //     The IME Kana mode key.
  95
+        KanaMode = 21,
  96
+        //
  97
+        // Summary:
  98
+        //     The IME Hanguel mode key. (maintained for compatibility; use HangulMode)
  99
+        HanguelMode = 21,
  100
+        //
  101
+        // Summary:
  102
+        //     The IME Hangul mode key.
  103
+        HangulMode = 21,
  104
+        //
  105
+        // Summary:
  106
+        //     The IME Junja mode key.
  107
+        JunjaMode = 23,
  108
+        //
  109
+        // Summary:
  110
+        //     The IME final mode key.
  111
+        FinalMode = 24,
  112
+        //
  113
+        // Summary:
  114
+        //     The IME Kanji mode key.
  115
+        KanjiMode = 25,
  116
+        //
  117
+        // Summary:
  118
+        //     The IME Hanja mode key.
  119
+        HanjaMode = 25,
  120
+        //
  121
+        // Summary:
  122
+        //     The ESC key.
  123
+        Escape = 27,
  124
+        //
  125
+        // Summary:
  126
+        //     The IME convert key.
  127
+        IMEConvert = 28,
  128
+        //
  129
+        // Summary:
  130
+        //     The IME nonconvert key.
  131
+        IMENonconvert = 29,
  132
+        //
  133
+        // Summary:
  134
+        //     The IME accept key. Obsolete, use System.Windows.Forms.Keys.IMEAccept instead.
  135
+        IMEAceept = 30,
  136
+        //
  137
+        // Summary:
  138
+        //     The IME accept key, replaces System.Windows.Forms.Keys.IMEAceept.
  139
+        IMEAccept = 30,
  140
+        //
  141
+        // Summary:
  142
+        //     The IME mode change key.
  143
+        IMEModeChange = 31,
  144
+        //
  145
+        // Summary:
  146
+        //     The SPACEBAR key.
  147
+        Space = 32,
  148
+        //
  149
+        // Summary:
  150
+        //     The PAGE UP key.
  151
+        Prior = 33,
  152
+        //
  153
+        // Summary:
  154
+        //     The PAGE UP key.
  155
+        PageUp = 33,
  156
+        //
  157
+        // Summary:
  158
+        //     The PAGE DOWN key.
  159
+        Next = 34,
  160
+        //
  161
+        // Summary:
  162
+        //     The PAGE DOWN key.
  163
+        PageDown = 34,
  164
+        //
  165
+        // Summary:
  166
+        //     The END key.
  167
+        End = 35,
  168
+        //
  169
+        // Summary:
  170
+        //     The HOME key.
  171
+        Home = 36,
  172
+        //
  173
+        // Summary:
  174
+        //     The LEFT ARROW key.
  175
+        Left = 37,
  176
+        //
  177
+        // Summary:
  178
+        //     The UP ARROW key.
  179
+        Up = 38,
  180
+        //
  181
+        // Summary:
  182
+        //     The RIGHT ARROW key.
  183
+        Right = 39,
  184
+        //
  185
+        // Summary:
  186
+        //     The DOWN ARROW key.
  187
+        Down = 40,
  188
+        //
  189
+        // Summary:
  190
+        //     The SELECT key.
  191
+        Select = 41,
  192
+        //
  193
+        // Summary:
  194
+        //     The PRINT key.
  195
+        Print = 42,
  196
+        //
  197
+        // Summary:
  198
+        //     The EXECUTE key.
  199
+        Execute = 43,
  200
+        //
  201
+        // Summary:
  202
+        //     The PRINT SCREEN key.
  203
+        PrintScreen = 44,
  204
+        //
  205
+        // Summary:
  206
+        //     The PRINT SCREEN key.
  207
+        Snapshot = 44,
  208
+        //
  209
+        // Summary:
  210
+        //     The INS key.
  211
+        Insert = 45,
  212
+        //
  213
+        // Summary:
  214
+        //     The DEL key.
  215
+        DeleteKey = 46,
  216
+        //
  217
+        // Summary:
  218
+        //     The HELP key.
  219
+        Help = 47,
  220
+        //
  221
+        // Summary:
  222
+        //     The 0 key.
  223
+        D0 = 48,
  224
+        //
  225
+        // Summary:
  226
+        //     The 1 key.
  227
+        D1 = 49,
  228
+        //
  229
+        // Summary:
  230
+        //     The 2 key.
  231
+        D2 = 50,
  232
+        //
  233
+        // Summary:
  234
+        //     The 3 key.
  235
+        D3 = 51,
  236
+        //
  237
+        // Summary:
  238
+        //     The 4 key.
  239
+        D4 = 52,
  240
+        //
  241
+        // Summary:
  242
+        //     The 5 key.
  243
+        D5 = 53,
  244
+        //
  245
+        // Summary:
  246
+        //     The 6 key.
  247
+        D6 = 54,
  248
+        //
  249
+        // Summary:
  250
+        //     The 7 key.
  251
+        D7 = 55,
  252
+        //
  253
+        // Summary:
  254
+        //     The 8 key.
  255
+        D8 = 56,
  256
+        //
  257
+        // Summary:
  258
+        //     The 9 key.
  259
+        D9 = 57,
  260
+        //
  261
+        // Summary:
  262
+        //     The A key.
  263
+        A = 65,
  264
+        //
  265
+        // Summary:
  266
+        //     The B key.
  267
+        B = 66,
  268
+        //
  269
+        // Summary:
  270
+        //     The C key.
  271
+        C = 67,
  272
+        //
  273
+        // Summary:
  274
+        //     The D key.
  275
+        D = 68,
  276
+        //
  277
+        // Summary:
  278
+        //     The E key.
  279
+        E = 69,
  280
+        //
  281
+        // Summary:
  282
+        //     The F key.
  283
+        F = 70,
  284
+        //
  285
+        // Summary:
  286
+        //     The G key.
  287
+        G = 71,
  288
+        //
  289
+        // Summary:
  290
+        //     The H key.
  291
+        H = 72,
  292
+        //
  293
+        // Summary:
  294
+        //     The I key.
  295
+        I = 73,
  296
+        //
  297
+        // Summary:
  298
+        //     The J key.
  299
+        J = 74,
  300
+        //
  301
+        // Summary:
  302
+        //     The K key.
  303
+        K = 75,
  304
+        //
  305
+        // Summary:
  306
+        //     The L key.
  307
+        L = 76,
  308
+        //
  309
+        // Summary:
  310
+        //     The M key.
  311
+        M = 77,
  312
+        //
  313
+        // Summary:
  314
+        //     The N key.
  315
+        N = 78,
  316
+        //
  317
+        // Summary:
  318
+        //     The O key.
  319
+        O = 79,
  320
+        //
  321
+        // Summary:
  322
+        //     The P key.
  323
+        P = 80,
  324
+        //
  325
+        // Summary:
  326
+        //     The Q key.
  327
+        Q = 81,
  328
+        //
  329
+        // Summary:
  330
+        //     The R key.
  331
+        R = 82,
  332
+        //
  333
+        // Summary:
  334
+        //     The S key.
  335
+        S = 83,
  336
+        //
  337
+        // Summary:
  338
+        //     The T key.
  339
+        T = 84,
  340
+        //
  341
+        // Summary:
  342
+        //     The U key.
  343
+        U = 85,
  344
+        //
  345
+        // Summary:
  346
+        //     The V key.
  347
+        V = 86,
  348
+        //
  349
+        // Summary:
  350
+        //     The W key.
  351
+        W = 87,
  352
+        //
  353
+        // Summary:
  354
+        //     The X key.
  355
+        X = 88,
  356
+        //
  357
+        // Summary:
  358
+        //     The Y key.
  359
+        Y = 89,
  360
+        //
  361
+        // Summary:
  362
+        //     The Z key.
  363
+        Z = 90,
  364
+        //
  365
+        // Summary:
  366
+        //     The left Windows logo key (Microsoft Natural Keyboard).
  367
+        LWin = 91,
  368
+        //
  369
+        // Summary:
  370
+        //     The right Windows logo key (Microsoft Natural Keyboard).
  371
+        RWin = 92,
  372
+        //
  373
+        // Summary:
  374
+        //     The application key (Microsoft Natural Keyboard).
  375
+        Apps = 93,
  376
+        //
  377
+        // Summary:
  378
+        //     The computer sleep key.
  379
+        Sleep = 95,
  380
+        //
  381
+        // Summary:
  382
+        //     The 0 key on the numeric keypad.
  383
+        NumPad0 = 96,
  384
+        //
  385
+        // Summary:
  386
+        //     The 1 key on the numeric keypad.
  387
+        NumPad1 = 97,
  388
+        //
  389
+        // Summary:
  390
+        //     The 2 key on the numeric keypad.
  391
+        NumPad2 = 98,
  392
+        //
  393
+        // Summary:
  394
+        //     The 3 key on the numeric keypad.
  395
+        NumPad3 = 99,
  396
+        //
  397
+        // Summary:
  398
+        //     The 4 key on the numeric keypad.
  399
+        NumPad4 = 100,
  400
+        //
  401
+        // Summary:
  402
+        //     The 5 key on the numeric keypad.
  403
+        NumPad5 = 101,
  404
+        //
  405
+        // Summary:
  406
+        //     The 6 key on the numeric keypad.
  407
+        NumPad6 = 102,
  408
+        //
  409
+        // Summary:
  410
+        //     The 7 key on the numeric keypad.
  411
+        NumPad7 = 103,
  412
+        //
  413
+        // Summary:
  414
+        //     The 8 key on the numeric keypad.
  415
+        NumPad8 = 104,
  416
+        //
  417
+        // Summary:
  418
+        //     The 9 key on the numeric keypad.
  419
+        NumPad9 = 105,
  420
+        //
  421
+        // Summary:
  422
+        //     The multiply key.
  423
+        Multiply = 106,
  424
+        //
  425
+        // Summary:
  426
+        //     The add key.
  427
+        Add = 107,
  428
+        //
  429
+        // Summary:
  430
+        //     The separator key.
  431
+        Separator = 108,
  432
+        //
  433
+        // Summary:
  434
+        //     The subtract key.
  435
+        Subtract = 109,
  436
+        //
  437
+        // Summary:
  438
+        //     The decimal key.
  439
+        Decimal = 110,
  440
+        //
  441
+        // Summary:
  442
+        //     The divide key.
  443
+        Divide = 111,
  444
+        //
  445
+        // Summary:
  446
+        //     The F1 key.
  447
+        F1 = 112,
  448
+        //
  449
+        // Summary:
  450
+        //     The F2 key.
  451
+        F2 = 113,
  452
+        //
  453
+        // Summary:
  454
+        //     The F3 key.
  455
+        F3 = 114,
  456
+        //
  457
+        // Summary:
  458
+        //     The F4 key.
  459
+        F4 = 115,
  460
+        //
  461
+        // Summary:
  462
+        //     The F5 key.
  463
+        F5 = 116,
  464
+        //
  465
+        // Summary:
  466
+        //     The F6 key.
  467
+        F6 = 117,
  468
+        //
  469
+        // Summary:
  470
+        //     The F7 key.
  471
+        F7 = 118,
  472
+        //
  473
+        // Summary:
  474
+        //     The F8 key.
  475
+        F8 = 119,
  476
+        //
  477
+        // Summary:
  478
+        //     The F9 key.
  479
+        F9 = 120,
  480
+        //
  481
+        // Summary:
  482
+        //     The F10 key.
  483
+        F10 = 121,
  484
+        //
  485
+        // Summary:
  486
+        //     The F11 key.
  487
+        F11 = 122,
  488
+        //
  489
+        // Summary:
  490
+        //     The F12 key.
  491
+        F12 = 123,
  492
+        //
  493
+        // Summary:
  494
+        //     The F13 key.
  495
+        F13 = 124,
  496
+        //
  497
+        // Summary:
  498
+        //     The F14 key.
  499
+        F14 = 125,
  500
+        //
  501
+        // Summary:
  502
+        //     The F15 key.
  503
+        F15 = 126,
  504
+        //
  505
+        // Summary:
  506
+        //     The F16 key.
  507
+        F16 = 127,
  508
+        //
  509
+        // Summary:
  510
+        //     The F17 key.
  511
+        F17 = 128,
  512
+        //
  513
+        // Summary:
  514
+        //     The F18 key.
  515
+        F18 = 129,
  516
+        //
  517
+        // Summary:
  518
+        //     The F19 key.
  519
+        F19 = 130,
  520
+        //
  521
+        // Summary:
  522
+        //     The F20 key.
  523
+        F20 = 131,
  524
+        //
  525
+        // Summary:
  526
+        //     The F21 key.
  527
+        F21 = 132,
  528
+        //
  529
+        // Summary:
  530
+        //     The F22 key.
  531
+        F22 = 133,
  532
+        //
  533
+        // Summary:
  534
+        //     The F23 key.
  535
+        F23 = 134,
  536
+        //
  537
+        // Summary:
  538
+        //     The F24 key.
  539
+        F24 = 135,
  540
+        //
  541
+        // Summary:
  542
+        //     The NUM LOCK key.
  543
+        NumLock = 144,
  544
+        //
  545
+        // Summary:
  546
+        //     The SCROLL LOCK key.
  547
+        Scroll = 145,
  548
+        //
  549
+        // Summary:
  550
+        //     The left SHIFT key.
  551
+        LShiftKey = 160,
  552
+        //
  553
+        // Summary:
  554
+        //     The right SHIFT key.
  555
+        RShiftKey = 161,
  556
+        //
  557
+        // Summary:
  558
+        //     The left CTRL key.
  559
+        LControlKey = 162,
  560
+        //
  561
+        // Summary:
  562
+        //     The right CTRL key.
  563
+        RControlKey = 163,
  564
+        //
  565
+        // Summary:
  566
+        //     The left ALT key.
  567
+        LMenu = 164,
  568
+        //
  569
+        // Summary:
  570
+        //     The right ALT key.
  571
+        RMenu = 165,
  572
+        //
  573
+        // Summary:
  574
+        //     The browser back key (Windows 2000 or later).
  575
+        BrowserBack = 166,
  576
+        //
  577
+        // Summary:
  578
+        //     The browser forward key (Windows 2000 or later).
  579
+        BrowserForward = 167,
  580
+        //
  581
+        // Summary:
  582
+        //     The browser refresh key (Windows 2000 or later).
  583
+        BrowserRefresh = 168,
  584
+        //
  585
+        // Summary:
  586
+        //     The browser stop key (Windows 2000 or later).
  587
+        BrowserStop = 169,
  588
+        //
  589
+        // Summary:
  590
+        //     The browser search key (Windows 2000 or later).
  591
+        BrowserSearch = 170,
  592
+        //
  593
+        // Summary:
  594
+        //     The browser favorites key (Windows 2000 or later).
  595
+        BrowserFavorites = 171,
  596
+        //
  597
+        // Summary:
  598
+        //     The browser home key (Windows 2000 or later).
  599
+        BrowserHome = 172,
  600
+        //
  601
+        // Summary:
  602
+        //     The volume mute key (Windows 2000 or later).
  603
+        VolumeMute = 173,
  604
+        //
  605
+        // Summary:
  606
+        //     The volume down key (Windows 2000 or later).
  607
+        VolumeDown = 174,
  608
+        //
  609
+        // Summary:
  610
+        //     The volume up key (Windows 2000 or later).
  611
+        VolumeUp = 175,
  612
+        //
  613
+        // Summary:
  614
+        //     The media next track key (Windows 2000 or later).
  615
+        MediaNextTrack = 176,
  616
+        //
  617
+        // Summary:
  618
+        //     The media previous track key (Windows 2000 or later).
  619
+        MediaPreviousTrack = 177,
  620
+        //
  621
+        // Summary:
  622
+        //     The media Stop key (Windows 2000 or later).
  623
+        MediaStop = 178,
  624
+        //
  625
+        // Summary:
  626
+        //     The media play pause key (Windows 2000 or later).
  627
+        MediaPlayPause = 179,
  628
+        //
  629
+        // Summary:
  630
+        //     The launch mail key (Windows 2000 or later).
  631
+        LaunchMail = 180,
  632
+        //
  633
+        // Summary:
  634
+        //     The select media key (Windows 2000 or later).
  635
+        SelectMedia = 181,
  636
+        //
  637
+        // Summary:
  638
+        //     The start application one key (Windows 2000 or later).
  639
+        LaunchApplication1 = 182,
  640
+        //
  641
+        // Summary:
  642
+        //     The start application two key (Windows 2000 or later).
  643
+        LaunchApplication2 = 183,
  644
+        //
  645
+        // Summary:
  646
+        //     The OEM 1 key.
  647
+        Oem1 = 186,
  648
+        //
  649
+        // Summary:
  650
+        //     The OEM Semicolon key on a US standard keyboard (Windows 2000 or later).
  651
+        OemSemicolon = 186,
  652
+        //
  653
+        // Summary:
  654
+        //     The OEM plus key on any country/region keyboard (Windows 2000 or later).
  655
+        Oemplus = 187,
  656
+        //
  657
+        // Summary:
  658
+        //     The OEM comma key on any country/region keyboard (Windows 2000 or later).
  659
+        Oemcomma = 188,
  660
+        //
  661
+        // Summary:
  662
+        //     The OEM minus key on any country/region keyboard (Windows 2000 or later).
  663
+        OemMinus = 189,
  664
+        //
  665
+        // Summary:
  666
+        //     The OEM period key on any country/region keyboard (Windows 2000 or later).
  667
+        OemPeriod = 190,
  668
+        //
  669
+        // Summary:
  670
+        //     The OEM question mark key on a US standard keyboard (Windows 2000 or later).
  671
+        OemQuestion = 191,
  672
+        //
  673
+        // Summary:
  674
+        //     The OEM 2 key.
  675
+        Oem2 = 191,
  676
+        //
  677
+        // Summary:
  678
+        //     The OEM tilde key on a US standard keyboard (Windows 2000 or later).
  679
+        Oemtilde = 192,
  680
+        //
  681
+        // Summary:
  682
+        //     The OEM 3 key.
  683
+        Oem3 = 192,
  684
+        //
  685
+        // Summary:
  686
+        //     The OEM 4 key.
  687
+        Oem4 = 219,
  688
+        //
  689
+        // Summary:
  690
+        //     The OEM open bracket key on a US standard keyboard (Windows 2000 or later).
  691
+        OemOpenBrackets = 219,
  692
+        //
  693
+        // Summary:
  694
+        //     The OEM pipe key on a US standard keyboard (Windows 2000 or later).
  695
+        OemPipe = 220,
  696
+        //
  697
+        // Summary:
  698
+        //     The OEM 5 key.
  699
+        Oem5 = 220,
  700
+        //
  701
+        // Summary:
  702
+        //     The OEM 6 key.
  703
+        Oem6 = 221,
  704
+        //
  705
+        // Summary:
  706
+        //     The OEM close bracket key on a US standard keyboard (Windows 2000 or later).
  707
+        OemCloseBrackets = 221,
  708
+        //
  709
+        // Summary:
  710
+        //     The OEM 7 key.
  711
+        Oem7 = 222,
  712
+        //
  713
+        // Summary:
  714
+        //     The OEM singled/double quote key on a US standard keyboard (Windows 2000
  715
+        //     or later).
  716
+        OemQuotes = 222,
  717
+        //
  718
+        // Summary:
  719
+        //     The OEM 8 key.
  720
+        Oem8 = 223,
  721
+        //
  722
+        // Summary:
  723
+        //     The OEM 102 key.
  724
+        Oem102 = 226,
  725
+        //
  726
+        // Summary:
  727
+        //     The OEM angle bracket or backslash key on the RT 102 key keyboard (Windows
  728
+        //     2000 or later).
  729
+        OemBackslash = 226,
  730
+        //
  731
+        // Summary:
  732
+        //     The PROCESS KEY key.
  733
+        ProcessKey = 229,
  734
+        //
  735
+        // Summary:
  736
+        //     Used to pass Unicode characters as if they were keystrokes. The Packet key
  737
+        //     value is the low word of a 32-bit virtual-key value used for non-keyboard
  738
+        //     input methods.
  739
+        Packet = 231,
  740
+        //
  741
+        // Summary:
  742
+        //     The ATTN key.
  743
+        Attn = 246,
  744
+        //
  745
+        // Summary:
  746
+        //     The CRSEL key.
  747
+        Crsel = 247,
  748
+        //
  749
+        // Summary:
  750
+        //     The EXSEL key.
  751
+        Exsel = 248,
  752
+        //
  753
+        // Summary:
  754
+        //     The ERASE EOF key.
  755
+        EraseEof = 249,
  756
+        //
  757
+        // Summary:
  758
+        //     The PLAY key.
  759
+        Play = 250,
  760
+        //
  761
+        // Summary:
  762
+        //     The ZOOM key.
  763
+        Zoom = 251,
  764
+        //
  765
+        // Summary:
  766
+        //     A constant reserved for future use.
  767
+        NoName = 252,
  768
+        //
  769
+        // Summary:
  770
+        //     The PA1 key.
  771
+        Pa1 = 253,
  772
+        //
  773
+        // Summary:
  774
+        //     The CLEAR key.
  775
+        OemClear = 254,
  776
+        //
  777
+        // Summary:
  778
+        //     The bitmask to extract a key code from a key value.
  779
+        KeyCode = 65535,
  780
+        //
  781
+        // Summary:
  782
+        //     The SHIFT modifier key.
  783
+        Shift = 65536,
  784
+        //
  785
+        // Summary:
  786
+        //     The CTRL modifier key.
  787
+        Control = 131072,
  788
+        //
  789
+        // Summary:
  790
+        //     The ALT modifier key.
  791
+        Alt = 262144,
  792
+    }
  793
+}
1  src/Libraries/Web/Web.csproj
@@ -51,6 +51,7 @@
51 51
     <Compile Include="Html\ElementEventListener.cs" />
52 52
     <Compile Include="Html\GestureEvent.cs" />
53 53
     <Compile Include="Html\CustomEvent.cs" />
  54
+    <Compile Include="Html\Keys.cs" />
54 55
     <Compile Include="Html\Media\Graphics\Rendering.cs" />
55 56
     <Compile Include="Html\MutableEvent.cs" />
56 57
     <Compile Include="Html\ClientRect.cs" />
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.