Example #1
0
static void mouse_button_callback( GtkWidget *widget,GdkEventButton *event, gpointer data)
{
  int v;
  switch (event->button) {
    case 1:
      v = GPOINTER_TO_INT(data);
#if 1
      if (cb_sele_by_idx)
        cb_sele_by_idx(v);
      force_preedit_shift();
#else
      send_fake_key_eve(pho_selkey[v]);
#endif
      break;
  }
}
Example #2
0
void fake_shift()
{
  send_fake_key_eve(XK_Shift_L);
}
Example #3
0
void force_preedit_shift()
{
  send_fake_key_eve(XK_Shift_L);
  force_preedit=1;
}