From 71e3a7fed4872378aece1fefd09c9c4439e06697 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 23 Dec 2024 12:57:10 +0800 Subject: [PATCH] Fix some issue with On Screen Keyboard --- ibus-hangul-fixes-osk.patch | 23 +++++++++++++++++++++++ ibus-hangul.spec | 8 +++++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 ibus-hangul-fixes-osk.patch diff --git a/ibus-hangul-fixes-osk.patch b/ibus-hangul-fixes-osk.patch new file mode 100644 index 0000000..ec7e2d9 --- /dev/null +++ b/ibus-hangul-fixes-osk.patch @@ -0,0 +1,23 @@ +From eaaf6aa222926835fa155d587b05c199107cb449 Mon Sep 17 00:00:00 2001 +From: Peng Wu +Date: Tue, 10 Dec 2024 10:38:44 +0800 +Subject: [PATCH] Support the key event from on screen keyboard + +--- + src/engine.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/engine.c b/src/engine.c +index faa3fb1..d23bd24 100644 +--- a/src/engine.c ++++ b/src/engine.c +@@ -1505,7 +1505,8 @@ ibus_hangul_engine_process_key_event (IBusEngine *engine, + bool is_transliteration_mode = + hangul_ic_is_transliteration(hangul->context); + if (!is_transliteration_mode) { +- if (keymap != NULL) ++ // on screen keyboard will send key event without keycode. ++ if (keymap != NULL && keycode != 0) + keyval = ibus_keymap_lookup_keysym(keymap, keycode, modifiers); + } + diff --git a/ibus-hangul.spec b/ibus-hangul.spec index 6ebc76d..c3ca61b 100644 --- a/ibus-hangul.spec +++ b/ibus-hangul.spec @@ -3,7 +3,7 @@ Name: ibus-hangul Version: 1.5.5 -Release: 8%{?dist} +Release: 9%{?dist} Summary: The Hangul engine for IBus input platform License: GPL-2.0-or-later URL: https://github.com/libhangul/ibus-hangul @@ -11,6 +11,7 @@ Source0: https://github.com/libhangul/ibus-hangul/releases/download/%{version # not upstreamed patches Patch1: ibus-hangul-setup-abspath.patch +Patch2: ibus-hangul-fixes-osk.patch BuildRequires: gettext-devel, automake, libtool BuildRequires: libhangul-devel >= %{require_libhangul_version} @@ -87,6 +88,11 @@ make check \ %{_datadir}/installed-tests/ibus-hangul %changelog +* Mon Dec 23 2024 Peng Wu - 1.5.5-9 +- Fix some issue with On Screen Keyboard +- Add ibus-hangul-fixes-osk.patch +- Resolves: RHEL-69510 + * Mon Dec 9 2024 Peng Wu - 1.5.5-8 - Update CI tests - Resolves: RHEL-70370