~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/xwt/Xwt/Xwt/Key.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// 
 
2
// Key.cs
 
3
//  
 
4
// Author:
 
5
//       Lluis Sanchez <lluis@xamarin.com>
 
6
// 
 
7
// Copyright (c) 2011 Xamarin Inc
 
8
// 
 
9
// Permission is hereby granted, free of charge, to any person obtaining a copy
 
10
// of this software and associated documentation files (the "Software"), to deal
 
11
// in the Software without restriction, including without limitation the rights
 
12
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 
13
// copies of the Software, and to permit persons to whom the Software is
 
14
// furnished to do so, subject to the following conditions:
 
15
// 
 
16
// The above copyright notice and this permission notice shall be included in
 
17
// all copies or substantial portions of the Software.
 
18
// 
 
19
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
20
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
21
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 
22
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 
23
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 
24
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 
25
// THE SOFTWARE.
 
26
using System;
 
27
 
 
28
namespace Xwt
 
29
{
 
30
        public enum Key
 
31
        {
 
32
                Cancel = 0xff69,
 
33
                BackSpace = 0xff08,
 
34
                Tab = 0xff09,
 
35
                LineFeed = 0xff0a,
 
36
                Clear = 0xff0b,
 
37
                Return = 0xff0d,
 
38
                Pause = 0xff13,
 
39
                CapsLock = 0xffe5,
 
40
                Escape = 0xff1b,
 
41
                Space = 0x20,
 
42
                PageUp = 0xff55,
 
43
                PageDown = 0xff56,
 
44
                End = 0xff57,
 
45
                Begin = 0xff58,
 
46
                Home = 0xff50,
 
47
                Left = 0xff51,
 
48
                Up = 0xff52,
 
49
                Right = 0xff53,
 
50
                Down = 0xff54,
 
51
                Select = 0xff60,
 
52
                Print = 0xff61,
 
53
                Execute = 0xff62,
 
54
                Delete = 0xffff,
 
55
                Help = 0xff6a,
 
56
                K0 = 0x30,
 
57
                K1 = 0x31,
 
58
                K2 = 0x32,
 
59
                K3 = 0x33,
 
60
                K4 = 0x34,
 
61
                K5 = 0x35,
 
62
                K6 = 0x36,
 
63
                K7 = 0x37,
 
64
                K8 = 0x38,
 
65
                K9 = 0x39,
 
66
                a = 0x61,
 
67
                b = 0x62,
 
68
                c = 0x63,
 
69
                d = 0x64,
 
70
                e = 0x65,
 
71
                f = 0x66,
 
72
                g = 0x67,
 
73
                h = 0x68,
 
74
                i = 0x69,
 
75
                j = 0x6a,
 
76
                k = 0x6b,
 
77
                l = 0x6c,
 
78
                m = 0x6d,
 
79
                n = 0x6e,
 
80
                o = 0x6f,
 
81
                p = 0x70,
 
82
                q = 0x71,
 
83
                r = 0x72,
 
84
                s = 0x73,
 
85
                t = 0x74,
 
86
                u = 0x75,
 
87
                v = 0x76,
 
88
                w = 0x77,
 
89
                x = 0x78,
 
90
                y = 0x79,
 
91
                z = 0x7a,
 
92
                NumPadSpace = 0xff80,
 
93
                NumPadTab = 0xff89,
 
94
                NumPadEnter = 0xff8d,
 
95
                NumPadF1 = 0xff91,
 
96
                NumPadF2 = 0xff92,
 
97
                NumPadF3 = 0xff93,
 
98
                NumPadF4 = 0xff94,
 
99
                NumPadHome = 0xff95,
 
100
                NumPadLeft = 0xff96,
 
101
                NumPadUp = 0xff97,
 
102
                NumPadRight = 0xff98,
 
103
                NumPadDown = 0xff99,
 
104
                NumPadPrior = 0xff9a,
 
105
                NumPadNext = 0xff9b,
 
106
                NumPadEnd = 0xff9c,
 
107
                NumPadBegin = 0xff9d,
 
108
                NumPadInsert = 0xff9e,
 
109
                NumPadDelete = 0xff9f,
 
110
                NumPadMultiply = 0xffaa,
 
111
                NumPadAdd = 0xffab,
 
112
                NumPadSeparator = 0xffac,
 
113
                NumPadSubtract = 0xffad,
 
114
                NumPadDecimal = 0xffae,
 
115
                NumPadDivide = 0xffaf,
 
116
                NumPad0 = 0xffb0,
 
117
                NumPad1 = 0xffb1,
 
118
                NumPad2 = 0xffb2,
 
119
                NumPad3 = 0xffb3,
 
120
                NumPad4 = 0xffb4,
 
121
                NumPad5 = 0xffb5,
 
122
                NumPad6 = 0xffb6,
 
123
                NumPad7 = 0xffb7,
 
124
                NumPad8 = 0xffb8,
 
125
                NumPad9 = 0xffb9,
 
126
                F1 = 0xffbe,
 
127
                F2 = 0xffbf,
 
128
                F3 = 0xffc0,
 
129
                F4 = 0xffc1,
 
130
                F5 = 0xffc2,
 
131
                F6 = 0xffc3,
 
132
                F7 = 0xffc4,
 
133
                F8 = 0xffc5,
 
134
                F9 = 0xffc6,
 
135
                F10 = 0xffc7,
 
136
                
 
137
                Insert = 0xff63,
 
138
                ScrollLock = 0xff14,
 
139
                SysReq = 0xff15,
 
140
                Undo = 0xff65,
 
141
                Redo = 0xff66,
 
142
                Menu = 0xff67,
 
143
                Find = 0xff68,
 
144
                Break = 0xff6b,
 
145
                NumLock = 0xff7f,
 
146
                Equal = 0xffbd,
 
147
                ShiftLeft = 0xffe1,
 
148
                ShiftRight = 0xffe2,
 
149
                ControlLeft = 0xffe3,
 
150
                ControlRight = 0xffe4,
 
151
                ShiftLock = 0xffe6,
 
152
                MetaLeft = 0xffe7,
 
153
                MetaRight = 0xffe8,
 
154
                AltLeft = 0xffe9,
 
155
                AltRight = 0xffea,
 
156
                SuperLeft = 0xffeb,
 
157
                SuperRight = 0xffec,
 
158
                HyperLeft = 0xffed,
 
159
                HyperRight = 0xffee,
 
160
                
 
161
                Asterisk = 0x2a,
 
162
                Plus = 0x2b,
 
163
                Comma = 0x2c,
 
164
                Minus = 0x2d,
 
165
                Period = 0x2e,
 
166
                Slash = 0x2f,
 
167
                Colon = 0x3a,
 
168
                Semicolon = 0x3b,
 
169
                Less = 0x3c,
 
170
                Greater = 0x3e,
 
171
                Question = 0x3f,
 
172
                At = 0x40,
 
173
                A = 0x41,
 
174
                B = 0x42,
 
175
                C = 0x43,
 
176
                D = 0x44,
 
177
                E = 0x45,
 
178
                F = 0x46,
 
179
                G = 0x47,
 
180
                H = 0x48,
 
181
                I = 0x49,
 
182
                J = 0x4a,
 
183
                K = 0x4b,
 
184
                L = 0x4c,
 
185
                M = 0x4d,
 
186
                N = 0x4e,
 
187
                O = 0x4f,
 
188
                P = 0x50,
 
189
                Q = 0x51,
 
190
                R = 0x52,
 
191
                S = 0x53,
 
192
                T = 0x54,
 
193
                U = 0x55,
 
194
                V = 0x56,
 
195
                W = 0x57,
 
196
                X = 0x58,
 
197
                Y = 0x59,
 
198
                Z = 0x5a,
 
199
        }
 
200
}
 
201