diff options
author | nyamatongwe <devnull@localhost> | 2003-03-01 06:40:10 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2003-03-01 06:40:10 +0000 |
commit | 426aebc8f7e143d1c019cf212b818ca29f5a423d (patch) | |
tree | 88152bf7894d77c481cd56427db46dd26962b470 /src/Editor.cxx | |
parent | 3d81977eb714d1221c73b3fad410341947c344f0 (diff) | |
download | scintilla-mirror-426aebc8f7e143d1c019cf212b818ca29f5a423d.tar.gz |
Cancel modes when focus lost.
Diffstat (limited to 'src/Editor.cxx')
-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(); } } |