gboolean module_feedkey (int nKeyVal, int nKeyState) { if (!g_pChewingCtx) return FALSE; if (!g_himeModMainFuncs.mf_tsin_pho_mode ()) return FALSE; hime_label_clear (MAX_SEG_NUM); chewing_set_ShapeMode (g_pChewingCtx, g_himeModMainFuncs.mf_current_shape_mode()); if (nKeyState & (Mod1Mask|Mod4Mask|Mod5Mask|ControlMask)) return FALSE; if (!hime_key_filter (&nKeyVal)) return FALSE; if (!hime_buffer_commit ()) return FALSE; if (!hime_buffer_label_show ()) return FALSE; if (!hime_zuin_label_show ()) return FALSE; module_show_win (); return TRUE; }
gboolean module_feedkey (int nKeyVal, int nKeyState) { if (!g_pChewingCtx) return FALSE; if (!g_himeModMainFuncs.mf_tsin_pho_mode ()) return FALSE; hime_label_clear (MAX_SEG_NUM); if (!hime_key_filter (&nKeyVal)) return FALSE; if (!hime_zuin_label_show ()) return FALSE; if (!hime_buffer_label_show ()) return FALSE; if (!hime_buffer_commit ()) return FALSE; module_show_win (); return TRUE; }