← Back to team overview

dx-packages team mailing list archive

[Bug 1274087] Re: Shift + F12 keys don't work in any program

 

Launchpad has imported 27 comments from the remote bug at
https://bugs.freedesktop.org/show_bug.cgi?id=45008.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2012-01-20T14:24:45+00:00 Christoph Anton Mitterer wrote:

Hi.

This is forwarded from the mentioned Debian bug:

The new version seems to somehow break the F10 key.

When being in GNOME, and havin a gnome-terminal opened, e.g. aptitude running...
pressing F10 should cause aptitude's menu to open.

But now, aptitude's menu opens, as well as the context menu of the
terminal itself.

Downgrading fixes the issue.


Cheers,
Chris.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/0

------------------------------------------------------------------------
On 2012-01-20T14:29:59+00:00 Sergey V. Udaltsov wrote:

what does xev utility reports when you press f10?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/1

------------------------------------------------------------------------
On 2012-01-21T00:11:15+00:00 Sven Joachim wrote:

I'm having the same problem with gnome-terminal, here is the xev output:

KeyPress event, serial 33, synthetic NO, window 0x1400001,
    root 0x2b5, subw 0x0, time 11437053, (31,432), root:(964,458),
    state 0x0, keycode 76 (keysym 0xffc7, F10), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x1400001,
    root 0x2b5, subw 0x0, time 11437163, (31,432), root:(964,458),
    state 0x0, keycode 76 (keysym 0xffc7, F10), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/2

------------------------------------------------------------------------
On 2012-01-21T00:16:40+00:00 Sergey V. Udaltsov wrote:

But according to what I see - it is all correct, F10 produces F10.

What is xev output with the previous version of xkb-data?

> KeyPress event, serial 33, synthetic NO, window 0x1400001,
>     root 0x2b5, subw 0x0, time 11437053, (31,432), root:(964,458),
>     state 0x0, keycode 76 (keysym 0xffc7, F10), same_screen YES,
>     XLookupString gives 0 bytes: 
>     XmbLookupString gives 0 bytes: 
>     XFilterEvent returns: False
> 
> KeyRelease event, serial 33, synthetic NO, window 0x1400001,
>     root 0x2b5, subw 0x0, time 11437163, (31,432), root:(964,458),
>     state 0x0, keycode 76 (keysym 0xffc7, F10), same_screen YES,
>     XLookupString gives 0 bytes: 
>     XFilterEvent returns: False

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/3

------------------------------------------------------------------------
On 2012-01-21T00:34:57+00:00 Sven Joachim wrote:

With the previous xkb-data version (2.3), it's essentially the same:

KeyPress event, serial 33, synthetic NO, window 0x1600001,
    root 0x2b5, subw 0x0, time 13172000, (-269,319), root:(664,345),
    state 0x0, keycode 76 (keysym 0xffc7, F10), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x1600001,
    root 0x2b5, subw 0x0, time 13172097, (-269,319), root:(664,345),
    state 0x0, keycode 76 (keysym 0xffc7, F10), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/4

------------------------------------------------------------------------
On 2012-01-21T00:46:12+00:00 Sergey V. Udaltsov wrote:

Well, in that case God knows why gnome-terminal behaves differently.

Ok, one more thing. Could you please do 'xkbcomp :0 -xkb out.xkb' for
both new and old versions? Attach the result here

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/5

------------------------------------------------------------------------
On 2012-01-21T01:05:27+00:00 Sven Joachim wrote:

Created attachment 55894
xkbcomp output with xkb-data 2.3

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/6

------------------------------------------------------------------------
On 2012-01-21T01:06:58+00:00 Sven Joachim wrote:

Created attachment 55895
xkbcomp output with xkb-data 2.5

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/7

------------------------------------------------------------------------
On 2012-01-21T05:40:52+00:00 Sergey V. Udaltsov wrote:

The definitions for F10 are different (I expected that, I did that
change) - but they should not matter if the XKB events are identical
(and they are!).

What I suspect is that some app (gnome-terminal?) somehow checks the key
definition. Why? I have no idea. Something was hardcoded - some
workaround, perhaps - there was an issue with functional keys in 2.4.
But xev output proves there is nothing to fix in xk-c

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/8

------------------------------------------------------------------------
On 2012-01-21T16:09:22+00:00 Christoph Anton Mitterer wrote:

It's a bit strange simply closing this... and btw: it's not only gnome-
terminal that is affected...

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/9

------------------------------------------------------------------------
On 2012-01-21T16:10:37+00:00 Christoph Anton Mitterer wrote:

(Especially as it's clearly triggered by the new xkb-data version).

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/10

------------------------------------------------------------------------
On 2012-01-21T17:00:10+00:00 Sergey V. Udaltsov wrote:

Actually I am ready to reopen if you explain me what exactly would you
like me to fix. The x11 (xev) events are absolutely identical - that is
the limit of xk-c responsibility, for properly written SW. Is that ok
with everybody?

If that's the case, the software is using some other information from
XKB config - which is should not, I guess

Returning to the previous version of F10 definition is not an option
because it had clearly broken semantics of things like Shift-F10.

So, what would you propose to do?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/11

------------------------------------------------------------------------
On 2012-01-21T17:06:08+00:00 Christoph Anton Mitterer wrote:

Well has anyone some idea on whose door we should knock now?

I mean it's probably some GNOME/GTK wide keyboard library or so?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/12

------------------------------------------------------------------------
On 2012-01-21T17:15:11+00:00 Sergey V. Udaltsov wrote:

I would start with gnome-terminal perhaps.

I am really sorry I cannot be of much help. When you open the bug in
gnome bugzilla, could you please provide the link here in comments - so
that I could participate in the discussion.

Thank you and sorry again.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/13

------------------------------------------------------------------------
On 2012-01-21T17:39:50+00:00 Sergey V. Udaltsov wrote:

I just tried on my debian, F10 opens g-t menu, aptitide seems not
getting it at all. Which is reasonable to some extent...

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/14

------------------------------------------------------------------------
On 2012-01-21T23:01:56+00:00 Sven Joachim wrote:

To reproduce the problem, you need to configure gnome-terminal to pass
F10 to the application. Under "Edit → Keyboard Shortcuts", uncheck
"Enable the menu shortcut key (F10 by default)".

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/15

------------------------------------------------------------------------
On 2012-01-22T03:57:10+00:00 Sergey V. Udaltsov wrote:

Yes I can reproduce it. That just convinces me that g-t would be a good
starting point - I do not know how g-t implements that feature...

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/16

------------------------------------------------------------------------
On 2012-01-22T07:17:32+00:00 Wettstein509 wrote:

> The definitions for F10 are different (I expected that, I did that change) ->
> but they should not matter if the XKB events are identical (and they are!).

This is not completely true. The new definition of CTRL+ALT consumes Shift,
the old one does not.  With the new definition, in a pedantic interpretation
of section 7.2.1 of the protocol specification of the X Keyboard Extension,
applications must not distinguish Shift-F10 and F10 anymore.

To see wether this is related to problem at hand, one could replace the 
definition of CTRL+ALT (file in types/pc) with the following one:

   type "CTRL+ALT" {
	modifiers = Control+Alt+Shift+LevelThree;
        map[None] = Level1;
        map[Shift] = Level2;
        map[LevelThree] = Level3;
        map[Shift+LevelThree] = Level4;
	map[Control+Alt] = Level5;
	preserve[Shift] = Shift;
	preserve[Shift+LevelThree] = Shift;
	preserve[Shift+LevelThree+Alt] = Shift;
	preserve[Shift+LevelThree+Control] = Shift;
	preserve[Shift+LevelThree+Alt+Control] = Shift;
	preserve[Shift+Alt] = Shift;
	preserve[Shift+Alt+Control] = Shift;
	preserve[Shift+Control] = Shift;
        level_name[Level1] = "Base";
        level_name[Level2] = "Shift";
        level_name[Level3] = "Alt Base";
        level_name[Level4] = "Shift Alt";
	level_name[Level5] = "Ctrl+Alt";
    };

I do not have gnome on my machine, so I cannot test myself.  Note that
the above definition is still not nice, but should be ok to check wether
consumed Shift is to blame.

> Returning to the previous version of F10 definition is not an option because it
> had clearly broken semantics of things like Shift-F10.

Do you have a pointer where the problems with the old definition are
described?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/17

------------------------------------------------------------------------
On 2012-01-22T07:22:39+00:00 Sergey V. Udaltsov wrote:

> This is not completely true. The new definition of CTRL+ALT consumes Shift,
> the old one does not.  
How does it affect the behavior of the F10 when shift is not pressed? As you can see, the events are exactly same.

> Do you have a pointer where the problems with the old definition are
> described?
https://bugs.freedesktop.org/show_bug.cgi?id=11822

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/18

------------------------------------------------------------------------
On 2012-01-22T08:06:43+00:00 Wettstein509 wrote:

> How does it affect the behavior of the F10 when shift is not pressed? As you
> can see, the events are exactly same.

Basically, as Shift is consumed, one should not distinguish F10 and
Shift-F10.  This means that pressing Shift-F10 should be handled like
pressing F10; or that pressing F10 should be handled like pressing
Shift-F10.  So it is imaginable that consuming Shift assigns two functions
to pressing F10: the usual one for F10, plus the one for Shift-F10.

That is the idea.  Whether it happens like this, I do not know.  One has to
try or read the relevant source code.  In any event, the original report
speaks about two actions triggered by F10...

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/19

------------------------------------------------------------------------
On 2012-01-26T06:48:18+00:00 Christoph Anton Mitterer wrote:

I've reassigned (http://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=656685#19) the Debian bug to the GNOME guys...
hope they can point us to the right place.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/20

------------------------------------------------------------------------
On 2012-01-26T08:14:29+00:00 Sven Joachim wrote:

For the record, this has already been reported in GNOME's bugzilla at
https://bugzilla.gnome.org/show_bug.cgi?id=661973.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/21

------------------------------------------------------------------------
On 2012-08-05T18:26:56+00:00 Yevgen Muntyan wrote:

Could someone take a look at gdk_x11_keymap_translate_keyboard_state ()
in http://git.gnome.org/browse/gtk+/tree/gdk/x11/gdkkeys-x11.c, and see
if they are supposed to be broken? This bug is sitting for six month in
the gnome bugzilla now, and it doesn't look like someone knows a
definite answer as to what exactly is broken.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/22

------------------------------------------------------------------------
On 2012-09-02T00:58:20+00:00 Matthias Clasen wrote:

I'm reopening this.
My own investigation confirms the finding in comment 17.
The xkeyboard-config changes in 2.4.1 make XKB translate Shift-F10 into F10 with level one, while telling my that the Shift modifier got consumed.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/23

------------------------------------------------------------------------
On 2012-09-02T01:02:55+00:00 Matthias Clasen wrote:

Also note that xev output being identical is pretty irrelevant here,
since xev only reports the core key events, not xkb data. that can be
extracted from the combination of key events + xkb maps.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/24

------------------------------------------------------------------------
On 2012-09-02T02:23:03+00:00 Matthias Clasen wrote:

    type "CTRL+ALT" {
        modifiers = Control+Alt+Shift+LevelThree;
        map[None] = Level1;
        map[Shift] = Level2;
        map[LevelThree] = Level3;
        map[Shift+LevelThree] = Level4;
        map[Control+Alt] = Level5;
        preserve[Shift] = Shift;
        preserve[Shift+LevelThree] = Shift;
        level_name[Level1] = "Base";
        level_name[Level2] = "Shift";
        level_name[Level3] = "Alt Base";
        level_name[Level4] = "Shift Alt";
        level_name[Level5] = "Ctrl+Alt";
    };

Here is a modified type for CTRL+ALT that works in my testing.
It is similar to the one in comment 17, but avoids blowing up the map with lots of new entries.

With this map, XkbTranslateKeyCode still translates Shift-F10 into F10
at level1, but the Shift modifier is now preserved, so GTK+ uses it when
matching  accelerators, and thus F10 and Shift-F10 can once again have
different bindings.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/25

------------------------------------------------------------------------
On 2012-09-02T07:58:34+00:00 Sergey V. Udaltsov wrote:

Thanks, that idea with preserve looks nice! Pushed.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1274087/comments/26


** Changed in: xkeyboard-config
       Status: Unknown => Fix Released

** Changed in: xkeyboard-config
   Importance: Unknown => High

** Bug watch added: freedesktop.org Bugzilla #11822
   https://bugs.freedesktop.org/show_bug.cgi?id=11822

** Bug watch added: Debian Bug tracker #656685
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656685

** Bug watch added: GNOME Bug Tracker #661973
   https://bugzilla.gnome.org/show_bug.cgi?id=661973

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to unity in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1274087

Title:
  Shift + F12 keys don't work in any program

Status in central project for keyboard configuration:
  Fix Released
Status in “unity” package in Ubuntu:
  New

Bug description:
  Description:	Ubuntu 12.04.4 LTS
  Release:	12.04

  byobu:
    Installed: 5.17-0ubuntu1

  Shift + F12 key combination doesn't work.

  Normally in byobu Shift + F12 disables a specific setting, but it
  doesn't in 12.04

  Also in a custom 4gl (Empress) application we have Shift + F12
  normally opens a window, but it doesn't in 12.04.

  Any other program that uses 12.04 has the same issue.  I have tested
  this on 3 machines running 12.04.

To manage notifications about this bug go to:
https://bugs.launchpad.net/xkeyboard-config/+bug/1274087/+subscriptions