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.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xkeyboard-config in Ubuntu.
https://bugs.launchpad.net/bugs/937822

Title:
  [precise] F10 always opens the menu, cannot be overriden (after
  xkeyboard-config update)

Status in GTK+ GUI Toolkit:
  Fix Released
Status in central project for keyboard configuration:
  Fix Released
Status in “gtk+2.0” package in Ubuntu:
  Fix Released
Status in “gtk+3.0” package in Ubuntu:
  Fix Released
Status in “xkeyboard-config” package in Ubuntu:
  Fix Released
Status in “gtk+2.0” source package in Precise:
  Invalid
Status in “xkeyboard-config” source package in Precise:
  Triaged
Status in “gtk+2.0” source package in Quantal:
  Fix Released
Status in “gtk+3.0” source package in Quantal:
  Fix Released
Status in “xkeyboard-config” source package in Quantal:
  Fix Released
Status in “gtk+2.0” package in Debian:
  Fix Released
Status in “gtk+3.0” package in Debian:
  Fix Released
Status in “xkeyboard-config” package in Debian:
  Fix Released

Bug description:
  [Impact]
  F10 behaves the same as Shift-F10.  This causes menus to pop up incorrectly.

  [Fix]
  Upstream patch preserves Shift so that Shift-F10 and F10 act as separate keys.

  [Test Case]
  1.  Open a gnome-terminal window
  2.  Run aptitude
  3.  Press F10

  Expected behavior:  Aptitude's menu opens
  Broken behavior:  Menus for both aptitude and gnome-terminal are shown.

  In different window environments (e.g. unity) other menus can be
  triggered than should be.

  [Regression Potential]
  The patch simply changes a keyboard layout config file, so the severity of 
any possible regression would be limited to keyboard configuration 
misbehaviors.  This is a well reviewed, tested patch from upstream and not 
expected to have any regression.

  [Original Report]
  Upstream bug report: https://bugzilla.gnome.org/show_bug.cgi?id=661973

  Visible in Unity - change keybinding for opening first global menu
  entry to Alt+F10.

  Pressing F10 triggers short flash of global menu nevertheless. When
  you disable the F10 shortcut in gnome-terminal, pressing the key
  triggers context menu in gnome terminal.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: libgtk-3-0 3.3.14-0ubuntu4
  ProcVersionSignature: Ubuntu 3.2.0-17.26-generic-pae 3.2.6
  Uname: Linux 3.2.0-17-generic-pae i686
  ApportVersion: 1.92-0ubuntu1
  Architecture: i386
  Date: Tue Feb 21 16:29:08 2012
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha i386 (20120119)
  SourcePackage: gtk+3.0
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/gtk/+bug/937822/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to