Skip to content

Commit

Permalink
src: Complete preedit signals for PostProcessKeyEvent
Browse files Browse the repository at this point in the history
I forgot to implement show-preedit-text and hide-preedit-text signals
with PostProcessKeyEvent D-Bus signal in the client side.

Fixes: e059536

BUG=#2585
  • Loading branch information
fujiwarat committed Dec 5, 2023
1 parent 59944dd commit 719792d
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions src/ibusinputcontext.c
Original file line number Diff line number Diff line change
Expand Up @@ -1463,6 +1463,22 @@ ibus_input_context_fwd_text_to_delete_surrounding (IBusInputContext *context,
}


static void
ibus_input_context_fwd_text_to_hide_preedit (IBusInputContext *context,
IBusText *text)
{
g_signal_emit (context, context_signals[HIDE_PREEDIT_TEXT], 0, text);
}


static void
ibus_input_context_fwd_text_to_show_preedit (IBusInputContext *context,
IBusText *text)
{
g_signal_emit (context, context_signals[SHOW_PREEDIT_TEXT], 0, text);
}


static void
ibus_input_context_fwd_text_to_update_preedit (IBusInputContext *context,
IBusText *text,
Expand Down Expand Up @@ -1558,18 +1574,21 @@ ibus_input_context_post_process_key_event (IBusInputContext *context)
case 'c':
ibus_input_context_fwd_text_to_commit (context, text);
break;
case 'f': {
case 'd':
ibus_input_context_fwd_text_to_delete_surrounding (context, text);
break;
case 'f':
ibus_input_context_fwd_text_to_forward_key_event (context, text);
break;
}
case 'r': {
case 'h':
ibus_input_context_fwd_text_to_hide_preedit (context, text);
break;
case 'r':
ibus_input_context_fwd_text_to_require_surrounding (context, text);
break;
}
case 'd': {
ibus_input_context_fwd_text_to_delete_surrounding (context, text);
case 's':
ibus_input_context_fwd_text_to_show_preedit (context, text);
break;
}
case 'u':
case 'm': {
IBusText *position;
Expand Down

0 comments on commit 719792d

Please sign in to comment.