Changeset 4026
- Timestamp:
- 02/01/06 03:19:58 (3 years ago)
- Files:
-
- trunk/src/ChangeLog.Meadow (modified) (1 diff)
- trunk/src/mw32ime.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/ChangeLog.Meadow
r4025 r4026 23 23 (fep-force-on): Ditto. 24 24 (fep-force-off): Ditto. 25 (mw32-ime-input-method-function): Change the method setting 26 initial input into IME. Injecting key event instead of setting 27 composition string with WM_MULE_IMM_SET_COMPOSITION_STRING, which 28 has different behavior between MS-IME and ATOK. 25 29 26 30 * callproc.c (Vmw32_process_expects_pty): Renamed to trunk/src/mw32ime.c
r4025 r4026 850 850 ResetEvent (input_method_function_event); 851 851 852 Ffep_force_on (Qnil); 853 852 854 result = Qnil; 853 855 redisplay_preserve_echo_area (30); … … 867 869 } 868 870 } 869 fflush (stdout);870 if (STRINGP (str))871 {872 str = ENCODE_SYSTEM (str);873 SendMessage (hwnd, WM_MULE_IMM_SET_COMPOSITION_STRING,874 (WPARAM)(SDATA (str)), 0);875 }876 Ffep_force_on (Qnil);877 871 878 872 mw32_set_ime_conv_window (hwnd, … … 880 874 XWINDOW (f->minibuffer_window): 881 875 XWINDOW (f->selected_window)); 876 877 /* Put the initnal string into IME via message. */ 878 if (STRINGP (str)) 879 { 880 char *p; 881 int ctrlstate; 882 883 /* Cancel control key if pressed */ 884 ctrlstate = GetKeyState (VK_CONTROL) & 0x80; 885 if (ctrlstate) 886 mw32_send_key_input (VK_CONTROL, 0, KEYEVENTF_KEYUP); 887 888 /* str assumed not to contain non-ascii characters. */ 889 for (p = SDATA (str) ; *p ; p++) 890 { 891 int c = toupper (*p); 892 893 mw32_send_key_input (c, 0, 0); 894 mw32_send_key_input (c, 0, KEYEVENTF_KEYUP); 895 } 896 897 /* Restore the state of control key */ 898 if (ctrlstate) 899 mw32_send_key_input (VK_CONTROL, 0, 0); 900 } 882 901 883 902 /* Rescue from dead block. This may not happen. */
