diff options
author | nyamatongwe <unknown> | 2003-03-01 06:40:10 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2003-03-01 06:40:10 +0000 |
commit | ee5ec0f2b0ec1d4535232489b4901c3079faa446 (patch) | |
tree | 88152bf7894d77c481cd56427db46dd26962b470 /src | |
parent | bdaa83673ced7c92a2038ecac902fceaa79c92cf (diff) | |
download | scintilla-mirror-ee5ec0f2b0ec1d4535232489b4901c3079faa446.tar.gz |
Cancel modes when focus lost.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 5f3020fc0..b3509510d 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3753,7 +3753,7 @@ int Editor::KeyCommand(unsigned int iMessage) { int viewLineStart = MovePositionSoVisible(StartEndDisplayLine(currentPos, true), -1); if ((viewLineStart < currentPos) && (viewLineStart > homePos)) homePos = viewLineStart; - + MovePositionTo(homePos); SetLastXChosen(); } @@ -4582,6 +4582,7 @@ void Editor::SetFocusState(bool focusState) { if (hasFocus) { ShowCaretAtCurrentPosition(); } else { + CancelModes(); DropCaret(); } } |