diff options
Diffstat (limited to 'src/Editor.cxx')
| -rw-r--r-- | src/Editor.cxx | 11 | 
1 files changed, 8 insertions, 3 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index dd4551735..3761154f3 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2296,14 +2296,19 @@ int Editor::KeyDefault(int, int) {  	return 0;  } -int Editor::KeyDown(int key, bool shift, bool ctrl, bool alt) { +int Editor::KeyDown(int key, bool shift, bool ctrl, bool alt, bool *consumed) {  	int modifiers = (shift ? SCI_SHIFT : 0) | (ctrl ? SCI_CTRL : 0) |  	                (alt ? SCI_ALT : 0);  	int msg = kmap.Find(key, modifiers); -	if (msg) +	if (msg) { +		if (consumed) +			*consumed = true;  		return WndProc(msg, 0, 0); -	else +	} else { +		if (consumed) +			*consumed = false;  		return KeyDefault(key, modifiers); +	}  }  void Editor::SetWhitespaceVisible(int view) { | 
