Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 419831 - xfce-base/libxfce4ui - Keyboard shortcuts: <Shift> modifier not recognized correctly
Summary: xfce-base/libxfce4ui - Keyboard shortcuts: <Shift> modifier not recognized co...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: XFCE Team
URL:
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks:
 
Reported: 2012-06-05 23:32 UTC by Matthew Gillespie
Modified: 2015-07-04 15:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild used for testing patch (libxfce4ui-4.10.0.ebuild,1.52 KB, text/plain)
2012-06-05 23:35 UTC, Matthew Gillespie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Gillespie 2012-06-05 23:32:53 UTC
As noted by another individual in https://bugzilla.xfce.org/show_bug.cgi?id=8744 , following the upgrade to xfce-base/libxfce4ui-4.10.0 the <shift> key no longer functions properly as a shortcut in XFCE4 when used in combination with another key.

As an example, <shift> F2 was previously a valid keyboard shortcut for an application. Following the upgrade it no longer is. XFCE bug 8744 addresses this issue, complete with a functioning patch.


Reproducible: Always

Steps to Reproduce:
1. Open the XFCE keyboard settings manager (xfce4-keyboard-settings)
2. Select the "Application Shortcuts" tab
3. Add any shortcut (example "/usr/bin/xterm") and press "OK"
4. When prompted for a key combination for the shortcut press <shift> and any other key (F2 for instance)
Actual Results:  
While the sequence was previously saved as "<shift> F2", one can clearly see that only "F2" is saved as the shortcut, omitting the <shift> key

Expected Results:  
The shortcut should have stored "<shift> F2"

I've tested the patches provided by Harald Judt "enable-shift-modifier-in-shortcut-dialog.patch" and "enable-shift-modifier-in-shortcut-grabber.patch" and can confirm they resolve this issue, with no noticeable ill affects.

I assume (hope) this patch (or similar) will make it into the upstream release shortly, however it may be of benefit to other Gentoo users in the interim.
Comment 1 Matthew Gillespie 2012-06-05 23:35:14 UTC
Created attachment 314361 [details]
Ebuild used for testing patch

The attached ebuild was used in my test of the mentioned patches.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-06 03:55:58 UTC
Comment on attachment 314361 [details]
Ebuild used for testing patch

--- libxfce4ui-4.10.0.ebuild    2012-05-24 07:42:58.000000000 +0200
+++ -   2012-06-06 05:55:43.583417793 +0200
@@ -43,3 +43,11 @@
 
        DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
 }
+
+src_unpack() {
+    unpack ${A}
+       cd "${S}"
+
+       epatch "${FILESDIR}"/enable-shift-modifier-in-shortcut-dialog.patch
+       epatch "${FILESDIR}"/enable-shift-modifier-in-shortcut-grabber.patch
+}
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2012-06-06 10:51:18 UTC
(In reply to comment #2)
> Comment on attachment 314361 [details]
> Ebuild used for testing patch
> 
> --- libxfce4ui-4.10.0.ebuild    2012-05-24 07:42:58.000000000 +0200
> +++ -   2012-06-06 05:55:43.583417793 +0200
> @@ -43,3 +43,11 @@
>  
>         DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
>  }
> +
> +src_unpack() {
> +    unpack ${A}
> +       cd "${S}"
> +
> +       epatch "${FILESDIR}"/enable-shift-modifier-in-shortcut-dialog.patch
> +       epatch "${FILESDIR}"/enable-shift-modifier-in-shortcut-grabber.patch
> +}

This is outdated, and wrong style for the xfconf.eclass

PATCHES=() array should be used in pkg_setup() as mentioned by the xfconf.eclass itself, and `man xfconf.eclass` after emerging eclass-manpages.
Comment 4 Matthew Gillespie 2012-06-06 17:25:56 UTC
--- -   2012-06-06 13:24:22.891119407 -0400
+++ libxfce4ui-4.10.0.ebuild    2012-06-06 13:17:51.000000000 -0400
@@ -31,6 +31,11 @@
        sys-devel/gettext"
 
 pkg_setup() {
+       PATCHES=(
+                       "${FILESDIR}/enable-shift-modifier-in-shortcut-dialog.patch"
+                       "${FILESDIR}/enable-shift-modifier-in-shortcut-grabber.patch"
+       )
+
        XFCONF=(
                $(use_enable startup-notification)
                $(use_enable glade gladeui)
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2012-06-06 19:14:34 UTC
OK. I will wait for a comment from upstream on the bug and get this merged in tree after; I really don't want to carry non-upstreamized patches in the Xfce core libs if not absolutely necessary...
Comment 6 Jason Zaman gentoo-dev 2015-07-04 15:46:23 UTC
looks like this has been fixed in 4.12.