Bug 12441 - MacBook's don't have right alt key - third level chooser is missing
Summary: MacBook's don't have right alt key - third level chooser is missing
Status: RESOLVED INVALID
Alias: None
Product: xkeyboard-config
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: x86 (IA32) All
: medium normal
Assignee: xkb
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-16 04:34 UTC by Mikko Ohtamaa
Modified: 2008-12-22 14:31 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Mikko Ohtamaa 2007-09-16 04:34:53 UTC
Ubuntu Gutsy Gibbon / Tribe 5

MacBooks (not sure about MacBook Pros) have only left ALT key. This key should be used as a third lever chooser. When you select MacBook layout, it comes as "Use right alt as third lever chooser" option. Because there is no right alt in this keyboard, typing third lever characters is impossible.

Finnish/Swedish layouts are affected at least (typing @ is impossible with the default settings)

Workaround: Use Gnome keyboard preferences and turn on "use any ALT as a third lever modifier"
Comment 1 Mikko Ohtamaa 2007-09-16 05:20:18 UTC
This is related:

https://bugs.freedesktop.org/show_bug.cgi?id=8068
Comment 2 Sergey V. Udaltsov 2007-09-16 05:27:36 UTC
Since that bug is already fixed - does it cover this one as well?
Comment 3 Mikko Ohtamaa 2007-09-16 05:37:17 UTC
(In reply to comment #2)
> Since that bug is already fixed - does it cover this one as well?
> 

Only the discussion is related. 

The patch includes an option to map Apple key as a modifier:

"It also includes a new option altwin:alt_win which puts alt on the windows keys. The window key is actually the apple key for the macbook of course, but its the key next to the spacebar where i'm used to alt being."

This is just the patch submitter's personal habit.

It actually doesn't fix the real problem that is

1) Macbook keyboards use left alt as a third lever chooser (on OSX and physically) 

2) Only right alt is mapped as third lever chooser when Macbook layout is selected). Since this key is not physically present, one cannot type third level characters.
Comment 4 Sergey V. Udaltsov 2007-09-16 05:54:56 UTC
> 1) Macbook keyboards use left alt as a third lever chooser (on OSX and
> physically) 
Well, if you want to use LAlt as AltGr - you'd be left without "normal" alt at all. Is that what you want?
Comment 5 Mikko Ohtamaa 2007-09-16 06:27:06 UTC
s a third lever chooser (on OSX and
> > physically) 
> Well, if you want to use LAlt as AltGr - you'd be left without "normal" alt at
> all. Is that what you want?
> 

This is what MacOSX does. 

As far as I know, Windows doesn't make difference between Alt and AltGr unless a key containg third lever characters is pressed.

Do you need "normal" Alt for anything on Linux? Can one access shortcuts (Alt+F for File menu) etc. if the behaviour is modified?

I can speak only for myself, but it's much more important to be able to type normal text (third level characters) and worrying about the shortcuts comes later. Typing a simple email (needs third level @ character) is not possible on international Macbook and default settings. 

Maybe Left AltGr behaviour could be made default for international Macbook layouts and US would preserve the current default behaviour?



 
Comment 6 Mikko Ohtamaa 2007-09-16 06:27:55 UTC
(In reply to comment #0)
> Ubuntu Gutsy Gibbon / Tribe 5
> 
> MacBooks (not sure about MacBook Pros) have only left ALT key. This key should
> be used as a third lever chooser. When you select MacBook layout, 

Also, confirmed that Macbook Pros lack right alt too.
Comment 7 Sergey V. Udaltsov 2007-09-16 10:28:11 UTC
> As far as I know, Windows doesn't make difference between Alt and AltGr unless
> a key containg third lever characters is pressed.
I'm afraid this is not possible in X.

> I can speak only for myself, but it's much more important to be able to type
> normal text (third level characters) and worrying about the shortcuts comes
> later. Typing a simple email (needs third level @ character) is not possible on
> international Macbook and default settings.
True. But the alternative would be disabling all shortcuts containing Alt. These problems I would consider as equally bad. 

> Maybe Left AltGr behaviour could be made default for international Macbook
> layouts and US would preserve the current default behaviour?
Sorry, I do not quite follow - which layouts/variants do you mean? The default mac US layout is the section "mac" in symbols/us. Do you propose another variant ("mac-intl")?
Comment 8 Mikko Ohtamaa 2007-09-25 15:42:03 UTC
> > international Macbook and default settings.
> True. But the alternative would be disabling all shortcuts containing Alt.
> These problems I would consider as equally bad. 

Well, I noticed this. ALT-Tab swapping doesn't work >_< 

This situation is really desperate. 

If someone besides Sergev reads this, here is the summary

1. MacBook owners assume that the one and only left Alt key will be the third level chooser

2. X can't use the same Alt key as a third level chooser and normal Alt (shortcut in menus etc.) simultaneously. The default behavior is bind Alt as a shortcut key, not as the third level chooser. 

OSX uses Meta (Apple key) for shortcuts. In OSX, there is no Alt-style menu shortcuts, but all shortcuts are CTRL-style. This is why the issue is not relevant in OSX.

There are two Apple keys, however.

Here are my suggestions:

Temporary solution:

Bind third level chooser to right Apple key. This is more like normal PC keyboard. Make sure that international MacBook newbies will be properly notified for the issue. There is no hope that anyone would find this without instructions.

Permanent solution:

Is there a possible way to bind the third level chooser key and Alt key for the same physical key in xkb?

> > Maybe Left AltGr behaviour could be made default for international Macbook
> > layouts and US would preserve the current default behaviour?

> Sorry, I do not quite follow - which layouts/variants do you mean? The default
> mac US layout is the section "mac" in symbols/us. Do you propose another
> variant ("mac-intl")?

There is already Macbook/MacbookPro (intl.) layout listed in my keyboard preferences in Gnome. I guess this translates to macbook79 in lower levels of xkb.
Comment 9 Piter PUNK 2007-09-26 09:55:34 UTC
> 1. MacBook owners assume that the one and only left Alt key will be the third
> level chooser

Ok, if the owners in their default operational system assumes Alt key will be
the third level chooser, i think xkeyboard-config needs to emulate the same
behavior and use left Alt key as third level chooser.
 
> OSX uses Meta (Apple key) for shortcuts. In OSX, there is no Alt-style menu
> shortcuts, but all shortcuts are CTRL-style. This is why the issue is not
> relevant in OSX.

Bind Meta (Apple key) to Alt. That fixes all and the behavior will be 
the same of OSX as needed.

> Bind third level chooser to right Apple key. This is more like normal PC
> keyboard. Make sure that international MacBook newbies will be properly
> notified for the issue. There is no hope that anyone would find this without
> instructions.

Well, my idea is different. I think we need to be more like MacBook in
a MacBook -;)
 
> Permanent solution:
> 
> Is there a possible way to bind the third level chooser key and Alt key for the
> same physical key in xkb?

Hmmmm and how we do with keyboard shortcuts that use the same keys as shortcuts?
Like € and Alt+E?
Comment 10 Mikko Ohtamaa 2007-09-26 10:11:03 UTC
> Hmmmm and how we do with keyboard shortcuts that use the same keys as
> shortcuts?
> Like € and Alt+E?

This will possible require code level changes in xkb

1. Send third level character if it's available
2. Otherwise send it as normal Alt+key keystroke

or 

do both

1. Send € character, but  Alt (normal) E keycodes

I am not sure how xkb and applications interact. Are Alt+key shortcut keycode based or character based?



Comment 11 Sergey V. Udaltsov 2007-09-26 14:30:17 UTC
> 1. Send third level character if it's available
> 2. Otherwise send it as normal Alt+key keystroke
Impossible. Either AltGr's keycode is mapped to the keysym ISO_Level3_Shift or to the symbol Alt_R (well, if we do not specify multiple groups for AltGr itself).
Comment 12 Benjamin Close 2008-01-11 02:39:06 UTC
Bugzilla Upgrade Mass Bug Change

NEEDSINFO state was removed in Bugzilla 3.x, reopening any bugs previously listed as NEEDSINFO.

  - benjsc
    fd.o Wrangler
Comment 13 Sergey V. Udaltsov 2008-12-22 14:31:31 UTC
Since we do not have working solution, I am closing this one... Feel free to reopen if you have any idea which can be used within current XKB solution.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.