MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / AssignCmdKey

Method AssignCmdKey

scintilla/src/KeyMap.cxx:38–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void KeyMap::AssignCmdKey(int key, int modifiers, unsigned int msg) {
39 for (size_t keyIndex = 0; keyIndex < kmap.size(); keyIndex++) {
40 if ((key == kmap[keyIndex].key) && (modifiers == kmap[keyIndex].modifiers)) {
41 kmap[keyIndex].msg = msg;
42 return;
43 }
44 }
45 KeyToCommand ktc;
46 ktc.key = key;
47 ktc.modifiers = modifiers;
48 ktc.msg = msg;
49 kmap.push_back(ktc);
50}
51
52unsigned int KeyMap::Find(int key, int modifiers) {
53 for (size_t i = 0; i < kmap.size(); i++) {

Callers 1

WndProcMethod · 0.80

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected