Bug 13882 - alt/meta shortcut confusion
Summary: alt/meta shortcut confusion
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: XFree86   
(Show other bugs)
Version: 7.1
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Mike A. Harris
QA Contact:
Whiteboard: Florence gold
: 24124 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2000-07-13 07:11 UTC by Brian Ryner
Modified: 2008-05-01 15:37 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-03-09 23:07:36 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
patch to fix it. (1.86 KB, patch)
2001-03-09 23:07 UTC, Trond Eivind Glomsrxd
no flags Details | Diff

Description Brian Ryner 2000-07-13 07:11:30 UTC
The default sawmill keybindings assume that the user's Alt key will be
mapped to Meta.  This is not always the case, however, as I found out after
changing my keyboard mapping to pc104.  I would suggest either making sure
alt is always defined one way, or add Alt keybindings so that it will work
either way.

Comment 1 Havoc Pennington 2000-07-17 17:06:57 UTC
Matt, should PC104 map meta to alt?

Comment 2 John Cagle 2000-07-24 21:53:02 UTC
This is still happening in beta4.  I have a Compaq DeskPro EN SFF where
the meta key ends up being the "Windows" key, not ALT.  I suggest always
mapping meta to ALT.

Comment 3 Havoc Pennington 2000-08-06 04:56:47 UTC
I think we decided this was a default keymap issue, i.e. not a sawfish bug, 
please change the component back if that's not the case

Comment 4 Matt Wilson 2000-08-06 05:01:47 UTC
pc105 is broken, I've move it to pc101 until xfree is fixed.

Comment 5 Havoc Pennington 2000-08-09 23:48:19 UTC
Assigning to the XFree owner

Comment 6 Glen Foster 2000-08-16 18:11:39 UTC
This defect is considered MUST-FIX for Winston Gold release

Comment 7 John Cagle 2000-08-16 18:15:22 UTC
BTW, RC1 is working for me on the DeskPro EN/SFF.

Comment 8 Matt Wilson 2000-08-16 18:50:25 UTC
pc104 is broken.  Use pc101 (which is what all our tools write out now.)  The
XFree people know about our issues with the pc104 map and it's currently an
upstream problem now.

Comment 9 Preston Brown 2001-03-06 17:08:38 UTC
*** Bug 24124 has been marked as a duplicate of this bug. ***

Comment 10 Trond Eivind Glomsrxd 2001-03-06 17:49:53 UTC
Left Alt in both cases return keycode 64 (Alt_L), it seems to be treated
differently by some applications.

Comment 11 Brian Ryner 2001-03-06 19:52:16 UTC
This is only a default keymap issue if the Alt key is interpreted as Meta on the
pc101 keymap.  The fact remains that the sawfish bindings are looking for Meta.

Comment 12 Brian Ryner 2001-03-06 21:39:53 UTC
Ok, this works for me on RC2 if I choose pc101.

Comment 13 Trond Eivind Glomsrxd 2001-03-07 00:09:57 UTC
If you choose 104/105 (as opposed to 101/102), you IMHO indicate that you want
to take advantage of them and use alt as alt and windows-key as meta.

The file /usr/X11R6/lib/X11/xkb/symbols/pc104 looks like it could be changed, I
didn't get any effect out of it though.

Comment 14 Trond Eivind Glomsrxd 2001-03-08 19:46:51 UTC
Change the indented (">") to the nonidented in /usr/X11R6/lib/X11/xkb/symbols/us

Reassigning to mharris for inclusion in XFree.

> // definition for the extra keys on 104-key "Windows95" keyboards
> xkb_symbols "pc104" {
>     include "us(generic101)"
>     key <LALT> {        [       Alt_L           ]       };
>     key <RALT> {        [       Alt_R           ]       };
>     key <LWIN> {        [       Meta_L          ]       };
>     key <RWIN> {        [       Meta_R          ]       };
>     key <MENU> {        [       Menu            ]       };
>     // modifier mappings
>     modifier_map Mod1   { Alt_L, Alt_R };
>     modifier_map Mod4   { Meta_L, Meta_R };
> };

To make this usable on most keyboards, I suggest:

    key <LALT> {        [       Alt_L, Meta_L   ]       };
    key <RALT> {        [       Alt_R, Meta_R   ]       };
    key <LWIN> {        [       Super_L         ]       };
    key <RWIN> {        [       Super_R         ]       };
    key <MENU> {        [       Menu            ]       };

    // modifier mappings
    modifier_map Mod1   { Alt_L, Alt_R, Meta_L, Meta_R };
    modifier_map Mod4   { Super_L, Super_R };

Comment 15 Trond Eivind Glomsrxd 2001-03-09 23:07:33 UTC
Created attachment 12263 [details]
patch to fix it.

Comment 16 Mike A. Harris 2001-03-10 04:20:03 UTC
This will appear in the first 4.0.2a package released in rawhide, or whatever
the next XFree86 package becomes.

Note You need to log in before you can comment on or make changes to this bug.