Fix some issue with On Screen Keyboard

This commit is contained in:
Peng Wu 2024-12-23 12:57:10 +08:00
parent 276e8071bf
commit 71e3a7fed4
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,23 @@
From eaaf6aa222926835fa155d587b05c199107cb449 Mon Sep 17 00:00:00 2001
From: Peng Wu <alexepico@gmail.com>
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);
}

View File

@ -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 <pwu@redhat.com> - 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 <pwu@redhat.com> - 1.5.5-8
- Update CI tests
- Resolves: RHEL-70370