Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_ImeWin32.cpp
| Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | bool GHOST_ImeWin32::IsImeKeyEvent(char ascii) | ||||
| if (!(IsEnglishMode())) { | if (!(IsEnglishMode())) { | ||||
| /* In Chinese, Japanese, Korean, all alpha keys are processed by IME. */ | /* In Chinese, Japanese, Korean, all alpha keys are processed by IME. */ | ||||
| if ((ascii >= 'A' && ascii <= 'Z') || (ascii >= 'a' && ascii <= 'z')) { | if ((ascii >= 'A' && ascii <= 'Z') || (ascii >= 'a' && ascii <= 'z')) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| if (IsLanguage(IMELANG_JAPANESE) && (ascii >= ' ' && ascii <= '~')) { | if (IsLanguage(IMELANG_JAPANESE) && (ascii >= ' ' && ascii <= '~')) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| else if (IsLanguage(IMELANG_CHINESE) && ascii && strchr("!\"$'(),.:;<>?[\\]^_`", ascii)) { | else if (IsLanguage(IMELANG_CHINESE) && ascii && strchr("!\"$'(),.:;<>?[\\]^_`/", ascii)) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| } | } | ||||
| return false; | return false; | ||||
| } | } | ||||
| void GHOST_ImeWin32::CreateImeWindow(HWND window_handle) | void GHOST_ImeWin32::CreateImeWindow(HWND window_handle) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 410 Lines • Show Last 20 Lines | |||||