Bug 810415

Summary: input-pad cannot switch IMEs with ibus 1.5
Product: [Fedora] Fedora Reporter: fujiwara <tfujiwar>
Component: ibusAssignee: fujiwara <tfujiwar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: i18n-bugs, shawn.p.huang, tfujiwar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ibus-1.4.99.20120428-1.fc17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-06 04:55:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description fujiwara 2012-04-06 01:06:48 UTC
input-pad XTest mode can send the keyevents to gtk clients but cannot switch IM engines by pressing Control + space buttons on input-pad with ibus 1.5.

To reproduce:
1. Invoke input-pad and ibus-ui-gtk3.
2. Press Control+space on input-pad window.

Comment 1 fujiwara 2012-04-06 01:10:55 UTC
The suggestion is to remove mouse masks from ibus trigger keys.
input-pad sends key events with mouse events.

diff --git a/ui/gtk3/keybindingmanager.vala b/ui/gtk3/keybindingmanager.vala
index 0b588da..dd3c7bd 100644
--- a/ui/gtk3/keybindingmanager.vala
+++ b/ui/gtk3/keybindingmanager.vala
@@ -36,7 +36,12 @@ public class KeybindingManager : GLib.Object {
	 Gdk.ModifierType.MOD2_MASK |
	 Gdk.ModifierType.LOCK_MASK |
	 Gdk.ModifierType.MOD4_MASK |
-	 Gdk.ModifierType.MOD5_MASK);
+	 Gdk.ModifierType.MOD5_MASK |
+	 Gdk.ModifierType.BUTTON1_MASK |
+	 Gdk.ModifierType.BUTTON2_MASK |
+	 Gdk.ModifierType.BUTTON3_MASK |
+	 Gdk.ModifierType.BUTTON4_MASK |
+	 Gdk.ModifierType.BUTTON5_MASK);

     /**
      * Helper class to store keybinding

Comment 3 Fedora Update System 2012-04-28 08:07:04 UTC
ibus-1.4.99.20120428-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/ibus-1.4.99.20120428-1.fc17

Comment 4 Fedora Update System 2012-04-28 17:11:21 UTC
Package ibus-1.4.99.20120428-1.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ibus-1.4.99.20120428-1.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-6889/ibus-1.4.99.20120428-1.fc17
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-05-06 04:55:02 UTC
ibus-1.4.99.20120428-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.