linux-traipu team mailing list archive
-
linux-traipu team
-
Mailing list archive
-
Message #03871
[Bug 903566] Re: cannot seem to bind <ctrl><alt>-<space> for activation
Urgh. Who'se been smoking crack?
The same problem hit gnome-control-centre, and was fixed with:
commit e46180ec18192a7954b4e75bca1594ec3ca3ae62
Author: Bastien Nocera <hadess@xxxxxxxxxx>
Date: Mon Oct 24 19:06:27 2011 +0100
common: Fix handling of <Primary>
As used in the new GTK+ 3.2.1.
https://bugzilla.redhat.com/show_bug.cgi?id=748444
diff --git a/panels/common/eggaccelerators.c b/panels/common/eggaccelerators.c
index 5a672ba..71f2433 100644
--- a/panels/common/eggaccelerators.c
+++ b/panels/common/eggaccelerators.c
@@ -178,6 +178,20 @@ is_hyper (const gchar *string)
}
static inline gboolean
+is_primary (const gchar *string)
+{
+ return ((string[0] == '<') &&
+ (string[1] == 'p' || string[1] == 'P') &&
+ (string[2] == 'r' || string[2] == 'R') &&
+ (string[3] == 'i' || string[3] == 'I') &&
+ (string[4] == 'm' || string[4] == 'M') &&
+ (string[5] == 'a' || string[5] == 'A') &&
+ (string[6] == 'r' || string[6] == 'R') &&
+ (string[7] == 'y' || string[7] == 'Y') &&
+ (string[8] == '>'));
+}
+
+static inline gboolean
is_keycode (const gchar *string)
{
return ((string[0] == '0') &&
@@ -310,6 +324,12 @@ egg_accelerator_parse_virtual (const gchar *accelerator,
len -= 7;
mods |= EGG_VIRTUAL_SUPER_MASK;
}
+ else if (len >= 9 && is_primary (accelerator))
+ {
+ accelerator += 9;
+ len -= 9;
+ mods |= EGG_VIRTUAL_CONTROL_MASK;
+ }
else
{
gchar last_ch;
** Bug watch added: Red Hat Bugzilla #748444
https://bugzilla.redhat.com/show_bug.cgi?id=748444
--
You received this bug notification because you are a member of UBUNTU -
AL - BR, which is subscribed to Do.
https://bugs.launchpad.net/bugs/903566
Title:
cannot seem to bind <ctrl><alt>-<space> for activation
Status in Do:
Fix Committed
Bug description:
There seems to be something off with trying to set a binding with
<ctrl><alt><space>. It's broken in both Ubuntu 12 and Fedora 16.
<Ctrl> is recognized as <Primary> and I cannot use it for some reason.
My convo with ROAF:
17:22 < RAOF> sri: Oh, wow. Seems that Ubuntu 12.04 has the same problem.
17:23 < RAOF> Except my <Ctrl> seems to be recognised as <Primary>. Whatever
*that* is.
17:24 < RAOF> Huh. And <Super>+Space is recognised as <Hyper>+<Super>+space.
17:24 < RAOF> But works.
17:24 < RAOF> I suspect that something's borken libdo's keybinding stuff.
Thanks :)
To manage notifications about this bug go to:
https://bugs.launchpad.net/do/+bug/903566/+subscriptions
References