[ibus-handwrite] Fixes keyboard shortcut

Peng Wu pwu at fedoraproject.org
Tue Jun 17 06:38:31 UTC 2014


commit 1583d7d4c53cc050d00d5bf1aadff272f28cc518
Author: Peng Wu <alexepico at gmail.com>
Date:   Tue Jun 17 11:35:02 2014 +0800

    Fixes keyboard shortcut

 fixes-escape-input.patch |   30 ++++++++++++++++++++++++++++++
 ibus-handwrite.spec      |    7 ++++++-
 2 files changed, 36 insertions(+), 1 deletions(-)
---
diff --git a/fixes-escape-input.patch b/fixes-escape-input.patch
new file mode 100644
index 0000000..5aaebd5
--- /dev/null
+++ b/fixes-escape-input.patch
@@ -0,0 +1,30 @@
+From 4dd0cd4249c4ddf9aa53726514780ebd4927e15d Mon Sep 17 00:00:00 2001
+From: Peng Wu <alexepico at gmail.com>
+Date: Mon, 16 Jun 2014 16:03:03 +0800
+Subject: [PATCH] fixes escape input
+
+---
+ src/engine.c | 7 ++-----
+ 1 file changed, 2 insertions(+), 5 deletions(-)
+
+diff --git a/src/engine.c b/src/engine.c
+index db5305d..52cf03c 100644
+--- a/src/engine.c
++++ b/src/engine.c
+@@ -230,11 +230,8 @@ static gboolean ibus_handwrite_engine_process_key_event(IBusEngine *engine,
+ 
+ 	gtk_widget_queue_draw(handwrite->drawpanel);
+ 
+-	if (!modifiers)
+-		return FALSE;
+-
+-	if(!handwrite->engine->strokes->len )
+-		return FALSE;
++	if (!(modifiers & IBUS_RELEASE_MASK))
++		return TRUE;
+ 
+ 	switch (keyval)
+ 	{
+-- 
+1.9.3
+
diff --git a/ibus-handwrite.spec b/ibus-handwrite.spec
index e5174cd..f5979f5 100644
--- a/ibus-handwrite.spec
+++ b/ibus-handwrite.spec
@@ -1,6 +1,6 @@
 Name:       ibus-handwrite
 Version:    2.1.4
-Release:    10%{?dist}
+Release:    11%{?dist}
 Summary:    IBus handwrite project
 License:    GPLv2+
 Group:      System Environment/Libraries
@@ -8,6 +8,7 @@ URL:        http://code.google.com/p/ibus-handwrite/
 Source0:    http://ibus-handwrite.googlecode.com/files/%{name}-%{version}.tar.bz2
 #Patch0:     ibus-handwrite-2.0.1-fixes-ibus-component-xml.patch
 #Patch1:     ibus-handwrite-add-tooltip.patch
+Patch2:     fixes-escape-input.patch
 
 BuildRequires:  autoconf
 BuildRequires:  gettext ibus-devel gtk2-devel
@@ -24,6 +25,7 @@ IBus handwrite project.
 %setup -q
 #%patch0 -p1 -b .component
 #%patch1 -p1 -b .tooltip
+%patch2 -p1 -b .esc
 
 %build
 #./autogen.sh
@@ -49,6 +51,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_libexecdir}/ibus-engine-handwrite
 
 %changelog
+* Tue Jun 17 2014 Peng Wu <pwu at redhat.com> - 2.1.4-11
+- Fixes keyboard shortcut
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.1.4-10
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list