mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-14 21:09:05 +08:00
Merge pull request #2005 from maboroshin/patch-3
ScintillaWin: Canceling behavior of Japanese IME
This commit is contained in:
commit
01a054eb24
@ -1286,6 +1286,11 @@ sptr_t ScintillaWin::HandleCompositionInline(uptr_t, sptr_t lParam) {
|
||||
|
||||
view.imeCaretBlockOverride = false;
|
||||
|
||||
if (lParam & GCS_RESULTSTR) {
|
||||
AddWString(imc.GetCompositionString(GCS_RESULTSTR), CharacterSource::imeResult);
|
||||
initialCompose = true;
|
||||
}
|
||||
|
||||
if (lParam & GCS_COMPSTR) {
|
||||
const std::wstring wcs = imc.GetCompositionString(GCS_COMPSTR);
|
||||
if (wcs.empty()) {
|
||||
@ -1331,8 +1336,6 @@ sptr_t ScintillaWin::HandleCompositionInline(uptr_t, sptr_t lParam) {
|
||||
if (KoreanIME()) {
|
||||
view.imeCaretBlockOverride = true;
|
||||
}
|
||||
} else if (lParam & GCS_RESULTSTR) {
|
||||
AddWString(imc.GetCompositionString(GCS_RESULTSTR), CharacterSource::imeResult);
|
||||
}
|
||||
EnsureCaretVisible();
|
||||
ShowCaretAtCurrentPosition();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user