Improve IME related comments in ScintillaWX
This commit is contained in:
@@ -847,18 +847,12 @@ sptr_t ScintillaWX::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam)
|
|||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
// ScintillaWin
|
// ScintillaWin
|
||||||
case WM_IME_STARTCOMPOSITION: // dbcs
|
case WM_IME_STARTCOMPOSITION:
|
||||||
// TODO: We haven't ported WM_IME_COMPOSITION yet, so always use windowed IME to make it at least work
|
// Always use windowed IME in ScintillaWX for now. Inline IME not implemented yet
|
||||||
//if (KoreanIME() || imeInteraction == imeInline) {
|
ImeStartComposition();
|
||||||
if (false) {
|
return stc->wxControl::MSWWindowProc(iMessage, wParam, lParam);
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
ImeStartComposition();
|
|
||||||
return stc->wxControl::MSWWindowProc(iMessage, wParam, lParam);
|
|
||||||
}
|
|
||||||
|
|
||||||
case WM_IME_ENDCOMPOSITION: // dbcs
|
case WM_IME_ENDCOMPOSITION:
|
||||||
ImeEndComposition();
|
ImeEndComposition();
|
||||||
return stc->wxControl::MSWWindowProc(iMessage, wParam, lParam);
|
return stc->wxControl::MSWWindowProc(iMessage, wParam, lParam);
|
||||||
|
|
||||||
@@ -866,7 +860,7 @@ sptr_t ScintillaWX::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam)
|
|||||||
case WM_IME_REQUEST:
|
case WM_IME_REQUEST:
|
||||||
case WM_IME_COMPOSITION:
|
case WM_IME_COMPOSITION:
|
||||||
case WM_IME_SETCONTEXT:
|
case WM_IME_SETCONTEXT:
|
||||||
// TODO: Port event handling from ScintillaWin
|
// These events are forwarded here for future inline IME implementation
|
||||||
return stc->wxControl::MSWWindowProc(iMessage, wParam, lParam);
|
return stc->wxControl::MSWWindowProc(iMessage, wParam, lParam);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user