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_SUPER SCMOD_SUPER
21 #define SCI_CSHIFT (SCI_CTRL | SCI_SHIFT)
22 #define SCI_ASHIFT (SCI_ALT | SCI_SHIFT)
30 KeyModifiers(int key_
, int modifiers_
) : key(key_
), modifiers(modifiers_
) {
32 bool operator<(const KeyModifiers
&other
) const {
34 return modifiers
< other
.modifiers
;
36 return key
< other
.key
;
52 std::map
<KeyModifiers
, unsigned int> kmap
;
53 static const KeyToCommand MapDefault
[];
59 void AssignCmdKey(int key
, int modifiers
, unsigned int msg
);
60 unsigned int Find(int key
, int modifiers
) const; // 0 returned on failure