1 // Scintilla source code edit control
3 ** Defines a mapping between keystrokes and commands.
5 // Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
6 // The License.txt file describes the conditions under which this software may be distributed.
16 #define SCI_SHIFT SCMOD_SHIFT
17 #define SCI_CTRL SCMOD_CTRL
18 #define SCI_ALT SCMOD_ALT
19 #define SCI_META SCMOD_META
20 #define SCI_CSHIFT (SCI_CTRL | SCI_SHIFT)
21 #define SCI_ASHIFT (SCI_ALT | SCI_SHIFT)
29 KeyModifiers(int key_
, int modifiers_
) : key(key_
), modifiers(modifiers_
) {
31 bool operator<(const KeyModifiers
&other
) const {
33 return modifiers
< other
.modifiers
;
35 return key
< other
.key
;
51 std::map
<KeyModifiers
, unsigned int> kmap
;
52 static const KeyToCommand MapDefault
[];
58 void AssignCmdKey(int key
, int modifiers
, unsigned int msg
);
59 unsigned int Find(int key
, int modifiers
) const; // 0 returned on failure