-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathSynEditKeyConst.pas
196 lines (176 loc) · 6.22 KB
/
SynEditKeyConst.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
{-------------------------------------------------------------------------------
The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
the specific language governing rights and limitations under the License.
The Original Code is: SynEditKeyCmds.pas, released 2000-04-07.
The Original Code is based on the mwKeyCmds.pas file from the
mwEdit component suite by Martin Waldenburg and other developers, the Initial
Author of this file is Brad Stowers.
All Rights Reserved.
Contributors to the SynEdit and mwEdit projects are listed in the
Contributors.txt file.
Alternatively, the contents of this file may be used under the terms of the
GNU General Public License Version 2 or later (the "GPL"), in which case
the provisions of the GPL are applicable instead of those above.
If you wish to allow use of your version of this file only under the terms
of the GPL and not to allow others to use your version of this file
under the MPL, indicate your decision by deleting the provisions above and
replace them with the notice and other provisions required by the GPL.
If you do not delete the provisions above, a recipient may use your version
of this file under either the MPL or the GPL.
$Id: SynEditKeyConst.pas,v 1.2 2004/07/11 02:01:05 andersonrb Exp $
You may retrieve the latest version of this file at the SynEdit home page,
located at http://SynEdit.SourceForge.net
Known Issues:
-------------------------------------------------------------------------------}
{$IFNDEF QSYNEDITKEYCONST}
unit SynEditKeyConst;
{$ENDIF}
{ This unit provides a translation of DELPHI and CLX key constants to
more readable SynEdit constants }
{$I SynEdit.inc}
interface
uses
{$IFDEF SYN_CLX}
Qt;
{$ELSE}
Windows;
{$ENDIF}
const
{$IFDEF SYN_CLX}
SYNEDIT_RETURN = KEY_RETURN;
SYNEDIT_ESCAPE = KEY_ESCAPE;
SYNEDIT_SPACE = KEY_SPACE;
SYNEDIT_PRIOR = KEY_PRIOR;
SYNEDIT_NEXT = KEY_NEXT;
SYNEDIT_END = KEY_END;
SYNEDIT_HOME = KEY_HOME;
SYNEDIT_UP = KEY_UP;
SYNEDIT_DOWN = KEY_DOWN;
SYNEDIT_BACK = KEY_BACKSPACE;
SYNEDIT_LEFT = KEY_LEFT;
SYNEDIT_RIGHT = KEY_RIGHT;
SYNEDIT_MENU = KEY_MENU;
SYNEDIT_CONTROL = KEY_CONTROL;
SYNEDIT_SHIFT = KEY_SHIFT;
SYNEDIT_F1 = KEY_F1;
SYNEDIT_F2 = KEY_F2;
SYNEDIT_F3 = KEY_F3;
SYNEDIT_F4 = KEY_F4;
SYNEDIT_F5 = KEY_F5;
SYNEDIT_F6 = KEY_F6;
SYNEDIT_F7 = KEY_F7;
SYNEDIT_F8 = KEY_F8;
SYNEDIT_F9 = KEY_F9;
SYNEDIT_F10 = KEY_F10;
SYNEDIT_F11 = KEY_F11;
SYNEDIT_F12 = KEY_F12;
SYNEDIT_F13 = KEY_F13;
SYNEDIT_F14 = KEY_F14;
SYNEDIT_F15 = KEY_F15;
SYNEDIT_F16 = KEY_F16;
SYNEDIT_F17 = KEY_F17;
SYNEDIT_F18 = KEY_F18;
SYNEDIT_F19 = KEY_F19;
SYNEDIT_F20 = KEY_F20;
SYNEDIT_F21 = KEY_F21;
SYNEDIT_F22 = KEY_F22;
SYNEDIT_F23 = KEY_F23;
SYNEDIT_F24 = KEY_F24;
SYNEDIT_PRINT = KEY_PRINT;
SYNEDIT_INSERT = KEY_INSERT;
SYNEDIT_DELETE = KEY_DELETE;
SYNEDIT_NUMPAD0 = KEY_0;
SYNEDIT_NUMPAD1 = KEY_1;
SYNEDIT_NUMPAD2 = KEY_2;
SYNEDIT_NUMPAD3 = KEY_3;
SYNEDIT_NUMPAD4 = KEY_4;
SYNEDIT_NUMPAD5 = KEY_5;
SYNEDIT_NUMPAD6 = KEY_6;
SYNEDIT_NUMPAD7 = KEY_7;
SYNEDIT_NUMPAD8 = KEY_8;
SYNEDIT_NUMPAD9 = KEY_9;
SYNEDIT_MULTIPLY = KEY_MULTIPLY;
SYNEDIT_ADD = KEY_PLUS;
SYNEDIT_SEPARATOR = KEY_ENTER;
SYNEDIT_SUBTRACT = KEY_MINUS;
SYNEDIT_DECIMAL = KEY_PERIOD;
SYNEDIT_DIVIDE = KEY_SLASH;
SYNEDIT_NUMLOCK = KEY_NUMLOCK;
SYNEDIT_SCROLL = KEY_SCROLLLOCK;
SYNEDIT_TAB = KEY_TAB;
SYNEDIT_CLEAR = KEY_SYSREQ;
SYNEDIT_PAUSE = KEY_PAUSE;
SYNEDIT_CAPITAL = KEY_CAPSLOCK;
{$ELSE}
SYNEDIT_RETURN = VK_RETURN;
SYNEDIT_ESCAPE = VK_ESCAPE;
SYNEDIT_SPACE = VK_SPACE;
SYNEDIT_PRIOR = VK_PRIOR;
SYNEDIT_NEXT = VK_NEXT;
SYNEDIT_END = VK_END;
SYNEDIT_HOME = VK_HOME;
SYNEDIT_UP = VK_UP;
SYNEDIT_DOWN = VK_DOWN;
SYNEDIT_BACK = VK_BACK;
SYNEDIT_LEFT = VK_LEFT;
SYNEDIT_RIGHT = VK_RIGHT;
SYNEDIT_MENU = VK_MENU;
SYNEDIT_CONTROL = VK_CONTROL;
SYNEDIT_SHIFT = VK_SHIFT;
SYNEDIT_F1 = VK_F1;
SYNEDIT_F2 = VK_F2;
SYNEDIT_F3 = VK_F3;
SYNEDIT_F4 = VK_F4;
SYNEDIT_F5 = VK_F5;
SYNEDIT_F6 = VK_F6;
SYNEDIT_F7 = VK_F7;
SYNEDIT_F8 = VK_F8;
SYNEDIT_F9 = VK_F9;
SYNEDIT_F10 = VK_F10;
SYNEDIT_F11 = VK_F11;
SYNEDIT_F12 = VK_F12;
SYNEDIT_F13 = VK_F13;
SYNEDIT_F14 = VK_F14;
SYNEDIT_F15 = VK_F15;
SYNEDIT_F16 = VK_F16;
SYNEDIT_F17 = VK_F17;
SYNEDIT_F18 = VK_F18;
SYNEDIT_F19 = VK_F19;
SYNEDIT_F20 = VK_F20;
SYNEDIT_F21 = VK_F21;
SYNEDIT_F22 = VK_F22;
SYNEDIT_F23 = VK_F23;
SYNEDIT_F24 = VK_F24;
SYNEDIT_PRINT = VK_PRINT;
SYNEDIT_INSERT = VK_INSERT;
SYNEDIT_DELETE = VK_DELETE;
SYNEDIT_NUMPAD0 = VK_NUMPAD0;
SYNEDIT_NUMPAD1 = VK_NUMPAD1;
SYNEDIT_NUMPAD2 = VK_NUMPAD2;
SYNEDIT_NUMPAD3 = VK_NUMPAD3;
SYNEDIT_NUMPAD4 = VK_NUMPAD4;
SYNEDIT_NUMPAD5 = VK_NUMPAD5;
SYNEDIT_NUMPAD6 = VK_NUMPAD6;
SYNEDIT_NUMPAD7 = VK_NUMPAD7;
SYNEDIT_NUMPAD8 = VK_NUMPAD8;
SYNEDIT_NUMPAD9 = VK_NUMPAD9;
SYNEDIT_MULTIPLY = VK_MULTIPLY;
SYNEDIT_ADD = VK_ADD;
SYNEDIT_SEPARATOR = VK_SEPARATOR;
SYNEDIT_SUBTRACT = VK_SUBTRACT;
SYNEDIT_DECIMAL = VK_DECIMAL;
SYNEDIT_DIVIDE = VK_DIVIDE;
SYNEDIT_NUMLOCK = VK_NUMLOCK;
SYNEDIT_SCROLL = VK_SCROLL;
SYNEDIT_TAB = VK_TAB;
SYNEDIT_CLEAR = VK_CLEAR;
SYNEDIT_PAUSE = VK_PAUSE;
SYNEDIT_CAPITAL = VK_CAPITAL;
{$ENDIF }
implementation
end.