|| ! ic->active)
return 0;
- if (key == Mnil)
+ if (key == Mnil && arg)
{
- if (! arg)
- return 0;
key = minput_event_to_key (win_ic_info->frame, arg);
if (key == Mnil)
return 1;
if (ic->im->language != Mnil)
mtext_put_prop (ic->preedit, 0, mtext_nchars (ic->preedit), Mlanguage,
ic->im->language);
- if (ic->candidate_list)
+ if (ic->candidate_list && ic->candidate_show)
mtext_push_prop (ic->preedit, ic->candidate_from, ic->candidate_to,
Mface, mface_reverse_video);
if (mtext_nchars (ic->produced) == 0)
plist = mplist_add (plist, Minput_reset, (void *) win_callback);
}
#if 0
- /* This will make a caller of minput_method_open() pazzled. */
+ /* This will make the caller of minput_method_open() pazzled. */
minput_driver = &minput_gui_driver;
#endif
and/or "S-" (Shift) in this order.
For instance, if the keysym name is "a" and the event has Shift,
- Meta, and Hyper modifiers, the resulting name is "H-M-A".
+ Meta, and Hyper modifiers, the resulting name is "M-H-A".
At last, a symbol who has the name is returned. */
(Control), "S-" (Shift) ¤¬¤³¤Î½çÈÖ¤ÇÉÕ¤¯¡£
¤¿¤È¤¨¤Ð¡¢keysym ̾¤¬ "a" ¤Ç¥¤¥Ù¥ó¥È¤¬ Shift, Meta, and Hyper
- ¥â¥Ç¥£¥Õ¥¡¥¤¥¢¤ò»ý¤Æ¤Ð¡¢ÆÀ¤é¤ì¤ë̾Á°¤Ï "H-M-A" ¤Ç¤¢¤ë¡£
+ ¥â¥Ç¥£¥Õ¥¡¥¤¥¢¤ò»ý¤Æ¤Ð¡¢ÆÀ¤é¤ì¤ë̾Á°¤Ï "M-H-A" ¤Ç¤¢¤ë¡£
ºÇ¸å¤Ë¤½¤Î̾Á°¤ò»ý¤Ä¥·¥ó¥Ü¥ë¤òÊÖ¤¹¡£*/