teditor  1.8.0@@fee5e94
Terminal based editor written in C++
keys.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <stdint.h>
4 #include "utils.h"
5 
6 
7 namespace teditor {
8 
9 typedef uint32_t key_t;
10 
11 
12 static const key_t Meta_None = 0x00000000;
13 static const key_t Meta_Shift = 0x00010000;
14 static const key_t Meta_Alt = 0x00020000;
15 static const key_t Meta_Ctrl = 0x00040000;
16 static const key_t Meta_Motion = 0x00080000; // for mouse events
17 
18 static const key_t Key_F1 = (0xFFFF-0);
19 static const key_t Key_F2 = (0xFFFF-1);
20 static const key_t Key_F3 = (0xFFFF-2);
21 static const key_t Key_F4 = (0xFFFF-3);
22 static const key_t Key_F5 = (0xFFFF-4);
23 static const key_t Key_F6 = (0xFFFF-5);
24 static const key_t Key_F7 = (0xFFFF-6);
25 static const key_t Key_F8 = (0xFFFF-7);
26 static const key_t Key_F9 = (0xFFFF-8);
27 static const key_t Key_F10 = (0xFFFF-9);
28 static const key_t Key_F11 = (0xFFFF-10);
29 static const key_t Key_F12 = (0xFFFF-11);
30 static const key_t Key_Insert = (0xFFFF-12);
31 static const key_t Key_Delete = (0xFFFF-13);
32 static const key_t Key_Home = (0xFFFF-14);
33 static const key_t Key_End = (0xFFFF-15);
34 static const key_t Key_PageUp = (0xFFFF-16);
35 static const key_t Key_PageDown = (0xFFFF-17);
36 static const key_t Key_ArrowLeft = (0xFFFF-18);
37 static const key_t Key_ArrowRight = (0xFFFF-19);
38 static const key_t Key_ArrowDown = (0xFFFF-20);
39 static const key_t Key_ArrowUp = (0xFFFF-21);
40 static const key_t Key_MouseLeft = (0xFFFF-22);
41 static const key_t Key_MouseRight = (0xFFFF-23);
42 static const key_t Key_MouseMiddle = (0xFFFF-24);
43 static const key_t Key_MouseRelease = (0xFFFF-25);
44 static const key_t Key_MouseWheelUp = (0xFFFF-26);
45 static const key_t Key_MouseWheelDown = (0xFFFF-27);
46 static const key_t Key_CtrlTilde = 0x00;
47 static const key_t Key_Ctrl2 = 0x00; /* clash with 'CtrlTilde' */
48 static const key_t Key_CtrlA = 0x01;
49 static const key_t Key_CtrlB = 0x02;
50 static const key_t Key_CtrlC = 0x03;
51 static const key_t Key_CtrlD = 0x04;
52 static const key_t Key_CtrlE = 0x05;
53 static const key_t Key_CtrlF = 0x06;
54 static const key_t Key_CtrlG = 0x07;
55 static const key_t Key_Backspace = 0x08;
56 static const key_t Key_CtrlH = 0x08; /* clash with 'Backspace' */
57 static const key_t Key_Tab = 0x09;
58 static const key_t Key_CtrlI = 0x09; /* clash with 'Tab' */
59 static const key_t Key_CtrlJ = 0x0A;
60 static const key_t Key_CtrlK = 0x0B;
61 static const key_t Key_CtrlL = 0x0C;
62 static const key_t Key_Enter = 0x0D;
63 static const key_t Key_CtrlM = 0x0D; /* clash with 'Enter' */
64 static const key_t Key_CtrlN = 0x0E;
65 static const key_t Key_CtrlO = 0x0F;
66 static const key_t Key_CtrlP = 0x10;
67 static const key_t Key_CtrlQ = 0x11;
68 static const key_t Key_CtrlR = 0x12;
69 static const key_t Key_CtrlS = 0x13;
70 static const key_t Key_CtrlT = 0x14;
71 static const key_t Key_CtrlU = 0x15;
72 static const key_t Key_CtrlV = 0x16;
73 static const key_t Key_CtrlW = 0x17;
74 static const key_t Key_CtrlX = 0x18;
75 static const key_t Key_CtrlY = 0x19;
76 static const key_t Key_CtrlZ = 0x1A;
77 static const key_t Key_Esc = 0x1B;
78 static const key_t Key_CtrlLsqBracket = 0x1B; /* clash with 'Esc' */
79 static const key_t Key_Ctrl3 = 0x1B; /* clash with 'Esc' */
80 static const key_t Key_Ctrl4 = 0x1C;
81 static const key_t Key_CtrlBackslash = 0x1C; /* clash with 'Ctrl4' */
82 static const key_t Key_Ctrl5 = 0x1D;
83 static const key_t Key_CtrlRsqBracket = 0x1D; /* clash with 'Ctrl5' */
84 static const key_t Key_Ctrl6 = 0x1E;
85 static const key_t Key_Ctrl7 = 0x1F;
86 static const key_t Key_CtrlSlash = 0x1F; /* clash with 'Ctrl7' */
87 static const key_t Key_CtrlUnderscore = 0x1F; /* clash with 'Ctrl7' */
88 static const key_t Key_Space = (key_t)' ';
89 static const key_t Key_Exclaim = (key_t)'!';
90 static const key_t Key_DQuote = (key_t)'"';
91 static const key_t Key_Hash = (key_t)'#';
92 static const key_t Key_Dollar = (key_t)'$';
93 static const key_t Key_Percent = (key_t)'%';
94 static const key_t Key_Ampersand = (key_t)'&';
95 static const key_t Key_SQuote = (key_t)'\'';
96 static const key_t Key_BrktOpen = (key_t)'(';
97 static const key_t Key_BrktClose = (key_t)')';
98 static const key_t Key_Star = (key_t)'*';
99 static const key_t Key_Plus = (key_t)'+';
100 static const key_t Key_Comma = (key_t)',';
101 static const key_t Key_Minus = (key_t)'-';
102 static const key_t Key_Dot = (key_t)'.';
103 static const key_t Key_Slash = (key_t)'/';
104 static const key_t Key_Zero = (key_t)'0';
105 static const key_t Key_One = (key_t)'1';
106 static const key_t Key_Two = (key_t)'2';
107 static const key_t Key_Three = (key_t)'3';
108 static const key_t Key_Four = (key_t)'4';
109 static const key_t Key_Five = (key_t)'5';
110 static const key_t Key_Six = (key_t)'6';
111 static const key_t Key_Seven = (key_t)'7';
112 static const key_t Key_Eight = (key_t)'8';
113 static const key_t Key_Nine = (key_t)'9';
114 static const key_t Key_Colon = (key_t)':';
115 static const key_t Key_SemiColo = (key_t)';';
116 static const key_t Key_Lt = (key_t)'<';
117 static const key_t Key_Question = (key_t)'?';
118 static const key_t Key_At = (key_t)'@';
119 static const key_t Key_A = (key_t)'A';
120 static const key_t Key_B = (key_t)'B';
121 static const key_t Key_C = (key_t)'C';
122 static const key_t Key_D = (key_t)'D';
123 static const key_t Key_E = (key_t)'E';
124 static const key_t Key_F = (key_t)'F';
125 static const key_t Key_G = (key_t)'G';
126 static const key_t Key_H = (key_t)'H';
127 static const key_t Key_I = (key_t)'I';
128 static const key_t Key_J = (key_t)'J';
129 static const key_t Key_K = (key_t)'K';
130 static const key_t Key_L = (key_t)'L';
131 static const key_t Key_M = (key_t)'M';
132 static const key_t Key_N = (key_t)'N';
133 static const key_t Key_O = (key_t)'O';
134 static const key_t Key_P = (key_t)'P';
135 static const key_t Key_Q = (key_t)'Q';
136 static const key_t Key_R = (key_t)'R';
137 static const key_t Key_S = (key_t)'S';
138 static const key_t Key_T = (key_t)'T';
139 static const key_t Key_U = (key_t)'U';
140 static const key_t Key_V = (key_t)'V';
141 static const key_t Key_W = (key_t)'W';
142 static const key_t Key_X = (key_t)'X';
143 static const key_t Key_Y = (key_t)'Y';
144 static const key_t Key_Z = (key_t)'Z';
145 static const key_t Key_SqBrktOpt = (key_t)'[';
146 static const key_t Key_BackSlash = (key_t)'\\';
147 static const key_t Key_SqBrktClose = (key_t)']';
148 static const key_t Key_Caret = (key_t)'^';
149 static const key_t Key_Underscore = (key_t)'_';
150 static const key_t Key_Backtick = (key_t)'`';
151 static const key_t Key_a = (key_t)'a';
152 static const key_t Key_b = (key_t)'b';
153 static const key_t Key_c = (key_t)'c';
154 static const key_t Key_d = (key_t)'d';
155 static const key_t Key_e = (key_t)'e';
156 static const key_t Key_f = (key_t)'f';
157 static const key_t Key_g = (key_t)'g';
158 static const key_t Key_h = (key_t)'h';
159 static const key_t Key_i = (key_t)'i';
160 static const key_t Key_j = (key_t)'j';
161 static const key_t Key_k = (key_t)'k';
162 static const key_t Key_l = (key_t)'l';
163 static const key_t Key_m = (key_t)'m';
164 static const key_t Key_n = (key_t)'n';
165 static const key_t Key_o = (key_t)'o';
166 static const key_t Key_p = (key_t)'p';
167 static const key_t Key_q = (key_t)'q';
168 static const key_t Key_r = (key_t)'r';
169 static const key_t Key_s = (key_t)'s';
170 static const key_t Key_t = (key_t)'t';
171 static const key_t Key_u = (key_t)'u';
172 static const key_t Key_v = (key_t)'v';
173 static const key_t Key_w = (key_t)'w';
174 static const key_t Key_x = (key_t)'x';
175 static const key_t Key_y = (key_t)'y';
176 static const key_t Key_z = (key_t)'z';
177 static const key_t Key_FBrktOpen = (key_t)'{';
178 static const key_t Key_Line = (key_t)'|';
179 static const key_t Key_FBrktClose = (key_t)'}';
180 static const key_t Key_Tilde = (key_t)'~';
181 static const key_t Key_Backspace2 = 0x7F;
182 static const key_t Key_Ctrl8 = 0x7F; /* clash with 'Backspace2' */
183 static const key_t Key_Invalid = 0xFFFFFFFF;
184 
185 
186 struct MetaKey {
187  MetaKey(): key(Key_Invalid) {}
188  MetaKey(key_t k): key(k) {}
189  MetaKey(key_t m, key_t k): key(m | k) {}
190  bool isInvalid() const { return key == Key_Invalid; }
191  key_t getMeta() const { return key & ~Mask; }
192  key_t getKey() const { return key & Mask; }
193  key_t getFull() const { return key; }
194  bool isAscii() const;
195  void reset() { key = Key_Invalid; }
196  void setKey(key_t k) { key = getMeta() | (k & Mask); }
197  void setMeta(key_t m) { key = (m & ~Mask) | getKey(); }
198  void updateMeta(key_t m) { key = (m & ~Mask) | key; }
199  std::string toStr() const;
200 
201 private:
202  key_t key;
203 
204  static const uint32_t Mask;
205 };
206 
207 bool operator==(const MetaKey& mk1, const MetaKey& mk2);
208 
209 }; // end namespace teditor
teditor::Key_CtrlK
static const key_t Key_CtrlK
Definition: keys.h:60
teditor::Key_K
static const key_t Key_K
Definition: keys.h:129
teditor::Key_CtrlX
static const key_t Key_CtrlX
Definition: keys.h:74
teditor::Key_F7
static const key_t Key_F7
Definition: keys.h:24
teditor::Key_At
static const key_t Key_At
Definition: keys.h:118
teditor::Key_t
static const key_t Key_t
Definition: keys.h:170
teditor::MetaKey::MetaKey
MetaKey(key_t m, key_t k)
Definition: keys.h:189
teditor::Key_MouseWheelDown
static const key_t Key_MouseWheelDown
Definition: keys.h:45
teditor::Key_Ctrl8
static const key_t Key_Ctrl8
Definition: keys.h:182
teditor::MetaKey
Definition: keys.h:186
teditor::Key_Tilde
static const key_t Key_Tilde
Definition: keys.h:180
teditor::Key_CtrlT
static const key_t Key_CtrlT
Definition: keys.h:70
teditor::MetaKey::getMeta
key_t getMeta() const
Definition: keys.h:191
teditor::Key_BackSlash
static const key_t Key_BackSlash
Definition: keys.h:146
teditor::Key_z
static const key_t Key_z
Definition: keys.h:176
teditor::Key_x
static const key_t Key_x
Definition: keys.h:174
teditor::Key_CtrlV
static const key_t Key_CtrlV
Definition: keys.h:72
teditor::Key_k
static const key_t Key_k
Definition: keys.h:161
teditor::Key_f
static const key_t Key_f
Definition: keys.h:156
teditor::Key_m
static const key_t Key_m
Definition: keys.h:163
logger.h
keys.h
teditor::Key_F5
static const key_t Key_F5
Definition: keys.h:22
teditor::MetaKey::updateMeta
void updateMeta(key_t m)
Definition: keys.h:198
teditor::Meta_Ctrl
static const key_t Meta_Ctrl
Definition: keys.h:15
teditor::Key_CtrlI
static const key_t Key_CtrlI
Definition: keys.h:58
teditor::Key_Ctrl6
static const key_t Key_Ctrl6
Definition: keys.h:84
teditor::Key_Ctrl7
static const key_t Key_Ctrl7
Definition: keys.h:85
teditor::Key_Slash
static const key_t Key_Slash
Definition: keys.h:103
teditor::Key_Seven
static const key_t Key_Seven
Definition: keys.h:111
teditor::Key_CtrlLsqBracket
static const key_t Key_CtrlLsqBracket
Definition: keys.h:78
teditor::Key_F9
static const key_t Key_F9
Definition: keys.h:26
teditor::Key_Lt
static const key_t Key_Lt
Definition: keys.h:116
teditor::Key_CtrlB
static const key_t Key_CtrlB
Definition: keys.h:49
teditor::Key_Percent
static const key_t Key_Percent
Definition: keys.h:93
teditor::Key_FBrktOpen
static const key_t Key_FBrktOpen
Definition: keys.h:177
teditor::Key_CtrlO
static const key_t Key_CtrlO
Definition: keys.h:65
teditor::Key_ArrowUp
static const key_t Key_ArrowUp
Definition: keys.h:39
teditor::Key_g
static const key_t Key_g
Definition: keys.h:157
teditor::Key_Zero
static const key_t Key_Zero
Definition: keys.h:104
teditor::Key_Backtick
static const key_t Key_Backtick
Definition: keys.h:150
teditor::Key_F11
static const key_t Key_F11
Definition: keys.h:28
teditor::Key_S
static const key_t Key_S
Definition: keys.h:137
teditor::Key_MouseMiddle
static const key_t Key_MouseMiddle
Definition: keys.h:42
teditor::Key_CtrlH
static const key_t Key_CtrlH
Definition: keys.h:56
teditor::Key_Enter
static const key_t Key_Enter
Definition: keys.h:62
teditor::Key_Line
static const key_t Key_Line
Definition: keys.h:178
teditor::Key_Dollar
static const key_t Key_Dollar
Definition: keys.h:92
teditor::Key_O
static const key_t Key_O
Definition: keys.h:133
teditor::Key_d
static const key_t Key_d
Definition: keys.h:154
teditor::Key_Tab
static const key_t Key_Tab
Definition: keys.h:57
teditor::Key_F1
static const key_t Key_F1
Definition: keys.h:18
teditor::Key_Star
static const key_t Key_Star
Definition: keys.h:98
teditor::Key_Comma
static const key_t Key_Comma
Definition: keys.h:100
teditor::Key_Delete
static const key_t Key_Delete
Definition: keys.h:31
teditor::Key_CtrlM
static const key_t Key_CtrlM
Definition: keys.h:63
teditor::Key_F10
static const key_t Key_F10
Definition: keys.h:27
teditor::Key_i
static const key_t Key_i
Definition: keys.h:159
teditor::Key_Ctrl4
static const key_t Key_Ctrl4
Definition: keys.h:80
teditor::Key_Ctrl5
static const key_t Key_Ctrl5
Definition: keys.h:82
teditor::Key_T
static const key_t Key_T
Definition: keys.h:138
teditor::Key_Space
static const key_t Key_Space
Definition: keys.h:88
teditor::Key_F6
static const key_t Key_F6
Definition: keys.h:23
teditor::Key_SqBrktOpt
static const key_t Key_SqBrktOpt
Definition: keys.h:145
teditor::Key_MouseWheelUp
static const key_t Key_MouseWheelUp
Definition: keys.h:44
teditor::Key_a
static const key_t Key_a
Definition: keys.h:151
teditor::Key_CtrlW
static const key_t Key_CtrlW
Definition: keys.h:73
teditor::MetaKey::setKey
void setKey(key_t k)
Definition: keys.h:196
teditor::Key_h
static const key_t Key_h
Definition: keys.h:158
teditor::Key_n
static const key_t Key_n
Definition: keys.h:164
teditor::Key_CtrlD
static const key_t Key_CtrlD
Definition: keys.h:51
teditor::MetaKey::getFull
key_t getFull() const
Definition: keys.h:193
teditor::Key_Ctrl2
static const key_t Key_Ctrl2
Definition: keys.h:47
teditor::Key_CtrlUnderscore
static const key_t Key_CtrlUnderscore
Definition: keys.h:87
teditor::Key_ArrowRight
static const key_t Key_ArrowRight
Definition: keys.h:37
teditor::Key_v
static const key_t Key_v
Definition: keys.h:172
utils.h
teditor::Key_A
static const key_t Key_A
Definition: keys.h:119
teditor::Key_b
static const key_t Key_b
Definition: keys.h:152
teditor::Key_Six
static const key_t Key_Six
Definition: keys.h:110
teditor::MetaKey::setMeta
void setMeta(key_t m)
Definition: keys.h:197
teditor::Meta_Motion
static const key_t Meta_Motion
Definition: keys.h:16
teditor::Key_X
static const key_t Key_X
Definition: keys.h:142
teditor::Key_ArrowDown
static const key_t Key_ArrowDown
Definition: keys.h:38
teditor::key_t
uint32_t key_t
Definition: keys.h:9
teditor::Key_CtrlA
static const key_t Key_CtrlA
Definition: keys.h:48
teditor::Key_CtrlBackslash
static const key_t Key_CtrlBackslash
Definition: keys.h:81
teditor::Key_Hash
static const key_t Key_Hash
Definition: keys.h:91
teditor::Key_Home
static const key_t Key_Home
Definition: keys.h:32
teditor::Key_Esc
static const key_t Key_Esc
Definition: keys.h:77
teditor::Key_CtrlP
static const key_t Key_CtrlP
Definition: keys.h:66
teditor::Key_PageDown
static const key_t Key_PageDown
Definition: keys.h:35
teditor::Key_q
static const key_t Key_q
Definition: keys.h:167
teditor::Key_Eight
static const key_t Key_Eight
Definition: keys.h:112
teditor::Key_Underscore
static const key_t Key_Underscore
Definition: keys.h:149
teditor::Key_F4
static const key_t Key_F4
Definition: keys.h:21
teditor::Key_D
static const key_t Key_D
Definition: keys.h:122
teditor::MetaKey::reset
void reset()
Definition: keys.h:195
teditor::Key_End
static const key_t Key_End
Definition: keys.h:33
teditor::Key_Question
static const key_t Key_Question
Definition: keys.h:117
teditor::MetaKey::MetaKey
MetaKey()
Definition: keys.h:187
teditor::Key_SemiColo
static const key_t Key_SemiColo
Definition: keys.h:115
teditor::Key_CtrlZ
static const key_t Key_CtrlZ
Definition: keys.h:76
teditor::Key_U
static const key_t Key_U
Definition: keys.h:139
teditor::Key_Nine
static const key_t Key_Nine
Definition: keys.h:113
teditor::Key_e
static const key_t Key_e
Definition: keys.h:155
teditor::Key_F12
static const key_t Key_F12
Definition: keys.h:29
teditor::Key_Backspace
static const key_t Key_Backspace
Definition: keys.h:55
teditor::Key_FBrktClose
static const key_t Key_FBrktClose
Definition: keys.h:179
teditor::Key_Insert
static const key_t Key_Insert
Definition: keys.h:30
teditor::Key_Exclaim
static const key_t Key_Exclaim
Definition: keys.h:89
teditor::num2str
std::string num2str(int num)
Definition: utils.cpp:66
teditor::Key_One
static const key_t Key_One
Definition: keys.h:105
teditor::Key_P
static const key_t Key_P
Definition: keys.h:134
teditor::Key_H
static const key_t Key_H
Definition: keys.h:126
teditor::operator==
bool operator==(const Cell &a, const Cell &b)
Definition: cell_buffer.cpp:33
teditor::Key_B
static const key_t Key_B
Definition: keys.h:120
teditor::Key_C
static const key_t Key_C
Definition: keys.h:121
teditor::Key_I
static const key_t Key_I
Definition: keys.h:127
teditor::Key_y
static const key_t Key_y
Definition: keys.h:175
teditor::Key_DQuote
static const key_t Key_DQuote
Definition: keys.h:90
teditor::Key_ArrowLeft
static const key_t Key_ArrowLeft
Definition: keys.h:36
teditor::Key_CtrlSlash
static const key_t Key_CtrlSlash
Definition: keys.h:86
teditor::Key_CtrlG
static const key_t Key_CtrlG
Definition: keys.h:54
teditor::Key_o
static const key_t Key_o
Definition: keys.h:165
utf8.h
teditor::MetaKey::isInvalid
bool isInvalid() const
Definition: keys.h:190
teditor::Key_l
static const key_t Key_l
Definition: keys.h:162
teditor::Key_CtrlU
static const key_t Key_CtrlU
Definition: keys.h:71
teditor::Key_Five
static const key_t Key_Five
Definition: keys.h:109
teditor::Key_Q
static const key_t Key_Q
Definition: keys.h:135
teditor::Meta_Alt
static const key_t Meta_Alt
Definition: keys.h:14
teditor::Key_Ctrl3
static const key_t Key_Ctrl3
Definition: keys.h:79
teditor::Key_G
static const key_t Key_G
Definition: keys.h:125
teditor::Key_CtrlJ
static const key_t Key_CtrlJ
Definition: keys.h:59
teditor::Key_W
static const key_t Key_W
Definition: keys.h:141
teditor::MetaKey::toStr
std::string toStr() const
Definition: keys.cpp:19
teditor::Key_p
static const key_t Key_p
Definition: keys.h:166
teditor::Key_Two
static const key_t Key_Two
Definition: keys.h:106
teditor::Key_CtrlF
static const key_t Key_CtrlF
Definition: keys.h:53
teditor::Key_F8
static const key_t Key_F8
Definition: keys.h:25
teditor::MetaKey::MetaKey
MetaKey(key_t k)
Definition: keys.h:188
teditor::Key_Four
static const key_t Key_Four
Definition: keys.h:108
teditor::Key_SQuote
static const key_t Key_SQuote
Definition: keys.h:95
teditor::Key_r
static const key_t Key_r
Definition: keys.h:168
teditor::Meta_Shift
static const key_t Meta_Shift
Definition: keys.h:13
teditor::Key_L
static const key_t Key_L
Definition: keys.h:130
teditor::Key_MouseRelease
static const key_t Key_MouseRelease
Definition: keys.h:43
teditor::Key_Caret
static const key_t Key_Caret
Definition: keys.h:148
teditor::Key_CtrlE
static const key_t Key_CtrlE
Definition: keys.h:52
teditor::Key_CtrlR
static const key_t Key_CtrlR
Definition: keys.h:68
teditor::Key_Backspace2
static const key_t Key_Backspace2
Definition: keys.h:181
teditor::Key_E
static const key_t Key_E
Definition: keys.h:123
teditor::Key_Dot
static const key_t Key_Dot
Definition: keys.h:102
teditor::Key_BrktOpen
static const key_t Key_BrktOpen
Definition: keys.h:96
teditor::MetaKey::getKey
key_t getKey() const
Definition: keys.h:192
teditor::Key_R
static const key_t Key_R
Definition: keys.h:136
teditor::Key_CtrlS
static const key_t Key_CtrlS
Definition: keys.h:69
teditor::Key_N
static const key_t Key_N
Definition: keys.h:132
teditor::Key_Plus
static const key_t Key_Plus
Definition: keys.h:99
teditor::Key_F2
static const key_t Key_F2
Definition: keys.h:19
teditor::Key_CtrlY
static const key_t Key_CtrlY
Definition: keys.h:75
teditor::Key_V
static const key_t Key_V
Definition: keys.h:140
teditor::Key_Minus
static const key_t Key_Minus
Definition: keys.h:101
teditor::Key_CtrlQ
static const key_t Key_CtrlQ
Definition: keys.h:67
teditor::Key_CtrlTilde
static const key_t Key_CtrlTilde
Definition: keys.h:46
teditor::Key_j
static const key_t Key_j
Definition: keys.h:160
teditor::Key_Colon
static const key_t Key_Colon
Definition: keys.h:114
teditor::Key_s
static const key_t Key_s
Definition: keys.h:169
teditor::Key_CtrlRsqBracket
static const key_t Key_CtrlRsqBracket
Definition: keys.h:83
teditor::Key_PageUp
static const key_t Key_PageUp
Definition: keys.h:34
teditor::Key_CtrlN
static const key_t Key_CtrlN
Definition: keys.h:64
teditor::Key_Z
static const key_t Key_Z
Definition: keys.h:144
teditor::Key_Invalid
static const key_t Key_Invalid
Definition: keys.h:183
teditor::Key_J
static const key_t Key_J
Definition: keys.h:128
teditor::Key_Three
static const key_t Key_Three
Definition: keys.h:107
teditor::Key_M
static const key_t Key_M
Definition: keys.h:131
teditor::Key_MouseRight
static const key_t Key_MouseRight
Definition: keys.h:41
teditor::Key_F
static const key_t Key_F
Definition: keys.h:124
teditor::Key_MouseLeft
static const key_t Key_MouseLeft
Definition: keys.h:40
teditor::Key_F3
static const key_t Key_F3
Definition: keys.h:20
teditor::Key_Y
static const key_t Key_Y
Definition: keys.h:143
teditor::Meta_None
static const key_t Meta_None
Definition: keys.h:12
teditor
Definition: any.hpp:10
teditor::Key_u
static const key_t Key_u
Definition: keys.h:171
teditor::Key_BrktClose
static const key_t Key_BrktClose
Definition: keys.h:97
teditor::Key_SqBrktClose
static const key_t Key_SqBrktClose
Definition: keys.h:147
teditor::Key_c
static const key_t Key_c
Definition: keys.h:153
teditor::Key_Ampersand
static const key_t Key_Ampersand
Definition: keys.h:94
teditor::Key_w
static const key_t Key_w
Definition: keys.h:173
teditor::Key_CtrlL
static const key_t Key_CtrlL
Definition: keys.h:61
teditor::Key_CtrlC
static const key_t Key_CtrlC
Definition: keys.h:50
teditor::MetaKey::isAscii
bool isAscii() const
Definition: keys.cpp:11