You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

AltGr not printing correct chars on Swedish keyboard

I've been using the same keyboard a long time and it's been printing the correct keys. Now, when pressing AltGr it does not produce the correct chars anymore. I've reset the layout as suggested here: Macos detected wrong keyboard layout - Apple Community


This has helped me once before, when all of a sudden macOS lost the key on right of the left key. Now it shows the correct key, and the layout is correct, but not for AltGr.


Here it shows it is detected as an ISO keyboard:



Layout looks correct:



But when I press AltGr, then all chars are wrong:



For example, the key right of the left shift should be the pipe | character.


It's like it's using some "Apple" layout, but there are no viable options. I tried the others as well, but they produce the same result:




If I go the Keyboard Setup Assistant again, the keyboard is detected as "ISO/Macintosh", unlike initially when it was detected as "ISO/IEC 9995 standard keyboard":



What's wrong and how do I fix this?

Posted on Oct 27, 2024 9:32 AM

Reply
8 replies

Oct 27, 2024 4:12 PM in response to Otso42

Otso42 wrote: I find it strange though, that Apple doesn't have support for standardized, or de-facto standardized keyboard layouts: https://en.wikipedia.org/wiki/QWERTY.

Apple hardware keyboard layouts are very often slightly different than Windows layouts. In number of cases Apple has provided windows layout software input sources for people who prefer to use non-Apple keyboards: British PC, Hebrew PC, Croatian PC, Russian PC, French PC are examples. Swedish PC is missing, but you could ask for it via


Product Feedback - Apple


The same problem exists for people who prefer to use Apple keyboards to type in Windows. In that case some special windows keyboards are available on the internet:


Language Issues When Using Apple Keyboard… - Apple Community




Oct 27, 2024 3:42 PM in response to Tom Gewecke

Tom Gewecke wrote:

Does your hardware keyboard have pipe printed on the key next to left shift?


Thanks again for your reply. My keyboard has this layout, with these markings on the keys:


It's likely that I just haven't had a need for the pipe chars, or other AltGr chars before while using that Swedish layout keyboard, so I was probably wrong as you say.


For coding and shell use, where I use a lot of pipe etc, I use my other (primary) keyboard, which is the US "Apple ABC" layout, so I probably just haven't noticed it before while using the Swedish layout keyboard.


I appreciate your help, I think this was my error. I find it strange though, that Apple doesn't have support for standardized, or de-facto standardized keyboard layouts: https://en.wikipedia.org/wiki/QWERTY.



I think the only Apple layouts with it there are German Standard (option level) and British PC (shift level).

Here's another user claiming "it used to work": https://stackoverflow.com/questions/62020051/cannot-use-alt-gr-characters-on-swedish-keyboard-e-g-alt-gr-2-should-print
I think that was only in iTerm. Is your problem with all apps, of just some?


Ok, I think it was a slightly ambiguous in the user's question, but yes, it was probably only iTerm. My issue is/was throughout the OS.

Oct 27, 2024 12:10 PM in response to Tom Gewecke

Thanks for your reply. I'm pretty sure I've had it correctly mapped before, so that it matches the actual keyboard keys. I haven't had to use any external software. But likely I'm wrong then.


I've mainly used a US layout keyboard, but occasionally use the Swedish layout keyboard, depending on the task I'm performing, so maybe I'm just confused, and it's always been like this.


Here's another user claiming "it used to work": https://stackoverflow.com/questions/62020051/cannot-use-alt-gr-characters-on-swedish-keyboard-e-g-alt-gr-2-should-print


(MacOS occasionally loosing the "<" right of shift altogether made me loose confidence in its capabilities. :-) )

Oct 27, 2024 1:36 PM in response to Otso42

Otso42 wrote:

Thanks for your reply. I'm pretty sure I've had it correctly mapped before, so that it matches the actual keyboard keys.

Does your hardware keyboard have pipe printed on the key next to left shift?


I think the only Apple layouts with it there are German Standard (option level) and British PC (shift level).


Here's another user claiming "it used to work": https://stackoverflow.com/questions/62020051/cannot-use-alt-gr-characters-on-swedish-keyboard-e-g-alt-gr-2-should-print

I think that was only in iTerm. Is your problem with all apps, of just some?



Oct 28, 2024 3:15 AM in response to Tom Gewecke

Tom Gewecke wrote:

Otso42 wrote: I find it strange though, that Apple doesn't have support for standardized, or de-facto standardized keyboard layouts: https://en.wikipedia.org/wiki/QWERTY
.
Apple hardware keyboard layouts are very often slightly different than Windows layouts.


For example the Finnish standard SFS 5966 (which is practically what my keyboard is), is a standardized keyboard layout. It is not a "Windows layout", it is a standardized keyboard layout. The standard summary is "This standard defines the layout of the basic keys in a general purpose alphanumeric keyboard designed for entering text by primarily Finnish or Swedish speaking users." It does not mention Windows. Both Windows and Linux have support for this standard.

AltGr not printing correct chars on Swedish keyboard

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.