Complete preedit signals for PostProcessKeyEvent
This commit is contained in:
parent
31e3c61bbd
commit
b10672f7c8
@ -1336,3 +1336,77 @@ index f1bbd720..783ec842 100644
|
|||||||
--
|
--
|
||||||
2.41.0
|
2.41.0
|
||||||
|
|
||||||
|
From 719792d300579c1bfdf43251a83c6ed4e5594c07 Mon Sep 17 00:00:00 2001
|
||||||
|
From: fujiwarat <takao.fujiwara1@gmail.com>
|
||||||
|
Date: Tue, 5 Dec 2023 23:13:25 +0900
|
||||||
|
Subject: [PATCH] src: Complete preedit signals for PostProcessKeyEvent
|
||||||
|
|
||||||
|
I forgot to implement show-preedit-text and hide-preedit-text signals
|
||||||
|
with PostProcessKeyEvent D-Bus signal in the client side.
|
||||||
|
|
||||||
|
Fixes: https://github.com/ibus/ibus/commit/e059536
|
||||||
|
|
||||||
|
BUG=https://github.com/ibus/ibus/issues/2585
|
||||||
|
---
|
||||||
|
src/ibusinputcontext.c | 33 ++++++++++++++++++++++++++-------
|
||||||
|
1 file changed, 26 insertions(+), 7 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/ibusinputcontext.c b/src/ibusinputcontext.c
|
||||||
|
index 1b62f656..600526e5 100644
|
||||||
|
--- a/src/ibusinputcontext.c
|
||||||
|
+++ b/src/ibusinputcontext.c
|
||||||
|
@@ -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,
|
||||||
|
@@ -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;
|
||||||
|
--
|
||||||
|
2.41.0
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
|
|
||||||
Name: ibus
|
Name: ibus
|
||||||
Version: 1.5.29~rc2
|
Version: 1.5.29~rc2
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: Intelligent Input Bus for Linux OS
|
Summary: Intelligent Input Bus for Linux OS
|
||||||
License: LGPL-2.1-or-later
|
License: LGPL-2.1-or-later
|
||||||
URL: https://github.com/ibus/%name/wiki
|
URL: https://github.com/ibus/%name/wiki
|
||||||
@ -580,6 +580,9 @@ dconf update || :
|
|||||||
%{_datadir}/installed-tests/ibus
|
%{_datadir}/installed-tests/ibus
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Dec 05 2023 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.29~rc2-4
|
||||||
|
- Complete preedit signals for PostProcessKeyEvent
|
||||||
|
|
||||||
* Sat Nov 25 2023 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.29~rc2-3
|
* Sat Nov 25 2023 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.29~rc2-3
|
||||||
- Resolve #2188800 Error handling with display == null
|
- Resolve #2188800 Error handling with display == null
|
||||||
- Enhance #2237486 Implement preedit color in Plasma Wayland
|
- Enhance #2237486 Implement preedit color in Plasma Wayland
|
||||||
|
Loading…
Reference in New Issue
Block a user