Bug 74714 - switching keyboard layout causes AltGr key loss
Summary: switching keyboard layout causes AltGr key loss
Status: RESOLVED NOT A BUG
Alias: None
Product: kxkb
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Andriy Rysin
URL:
Keywords:
: 83794 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-09 15:32 UTC by Giuseppe Raia
Modified: 2007-10-09 05:20 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Giuseppe Raia 2004-02-09 15:32:39 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.3.2 

When I switch from italian to english layout, and I return back to the italian one, I lose the AltGr key. It means that AltGr key doesn't work anymore.
Comment 1 Lubos Lunak 2004-02-24 11:19:18 UTC
Can you try if just running 'setxkbmap' from Konsole has the same effect?
Comment 2 Tomislav Sajdl 2004-03-18 12:15:23 UTC
Can't find more similar bug report - so posting here.

When I start app from us layout, and I switch to Yugoslav, then AltGr does not work in that app.

The simplest way to recall the behavior:
* start konsole
* switch to yu layout
* start kwrite from konsole
=> press altrg-anything - works ok
* kill kwrite
* change to us keyboard
* start kwrite from konsole
=> yugoslav characters could be typed, but AltGr does not work

Actually, you can see this even in konsole, depending what layout was turned on when you launch it from menu.

KDE 3.1.4 (RPMs from KDE site) on RH9

PS yugoslav layout has bugs inside, but where that should be reported. I don't think its part of KDE.
Comment 3 Tomislav Sajdl 2004-03-18 12:19:29 UTC
Sorry, one step omitted.
It should be: 
The simplest way to recall the behavior: 
 * start konsole 
 * switch to yu layout 
 * start kwrite from konsole 
 => press altrg-anything - works ok 
 * kill kwrite 
 * change to us keyboard 
 * start kwrite from konsole
 !!! * change layout to yu
 => yugoslav characters could be typed, but AltGr does not work 
 
Comment 4 Andriy Rysin 2004-06-28 17:00:26 UTC
*** Bug 83794 has been marked as a duplicate of this bug. ***
Comment 5 Andriy Rysin 2004-07-10 21:32:00 UTC
Could you please go to kxkb configuration and in 'Xkb option' tab turn off option  'Alt and Meta on the Alt keys' (may read a bit different on your X11) and see if it helps the problem?
Comment 6 Tomislav Sajdl 2004-07-11 21:03:34 UTC
Ok, I did my best to do thorow test. Unfortunately, at the moment only KDE desktop I can reach is 3.1.4 (installed from RPMs from KDE's site) on RH9
(About says: 3.1.4-0.9x1 RedHat). But as I was able to see, behavior is
consisent on 3.0, 3.1 and 3.2, so this test propably has some usefulness.

All tests are done using "global" switching policy.

US keyboard was primary layout, YU was secondary (making YU to be prim. and US 
sec. did not help, but I had not time to test all combinations).

There are 7 different options in Control Center/Regional & Accessibility/Keyboard Layout/Options, combo with the name "Alt/Win key behavior" (not listed in original order):

* empty [no label, and it is the default]
* "Super is mapped to the Win-keys (default)"
* "Alt and Meta on the Alt keys (default)"
* "Add the standard menu to Menu Key"
* "Meta is mapped to Win-keys"
* "Hyper is mapped to the Win-keys"
* "Meta is mapped to the left Win-key"

(BTW, I don't understand what this "default" in parenthses was suposed to mean, esp. since it appears twice)

Related to this problem, they behave in two ways:

Following behave as described before:

* empty [no label, and it is the default]
* "Super is mapped to the Win-keys (default)"
* "Add the standard menu to Menu Key"
* "Hyper is mapped to the Win-keys"
* "Meta is mapped to the left Win-key"

Pressing AltGr without solely will *not* activate upper menu line (i.e. "File Edit ..."), which is Ok behavior, IMHO. Pressing AltGr+W will show "w" instad of "|".

Following behave even worse:

* "Alt and Meta on the Alt keys (default)"
* "Meta is mapped to Win-keys"

With these settings, Alt-Gr behaves totaly as "Alt". It means, if you press it, you will activate upper menu line. There is no way to get anything to appear on the screen if you press AltGr+W (with the first group you will get "w" instead of "|", here you will get nothing)

One of the things that confuses me is related to:

* "Meta is mapped to the left Win-key"
* "Meta is mapped to Win-keys"

Why settings for Win key affect AltGr behavior?


And now one maybe OT thing:
How to make Alt-Shift to change layout. It never worked for me.
Whatever I set up (there are other predefined combinations), in practice only Ctrl-Alt-K works. Is this related to bug described before?

How it is possible noone except me not to run into this problem?
Comment 7 Andriy Rysin 2006-03-03 05:24:10 UTC
Does anybody know if this is still a bug with recent Xorg and KDE? If yes I´d need some help to take a look at it.
Comment 8 Carsten Lohrke 2006-04-20 17:35:10 UTC
Experimenting with Kxkb, because of bug 99009, I ran into this problem, too. So yes, it's still an issue. Disabling Kxkb doesn't fix it.

xorg-x11-6.8.2 / KDE 3.5.2
Comment 9 Andriy Rysin 2006-04-21 01:05:57 UTC
hmm, if disabling kxkb does not fix it, I would think it's not kxkb bug, but I'll try to take a look when I have some time
Comment 10 Andriy Rysin 2007-10-09 05:20:44 UTC
1. This did not look like it was kxkb-related (from the comments)
2. For the last year and a half many layouts in Xorg have been radically changed
3. There's no more "yu" layout, so this is not applicable any more.

Marking as invalid. If you still think it's kxkb problem feel free to reopen.