Keyboard layout modification: how can I get the Swedish keyboard layout for all languages?

I believe my issue was already addressed in the following thread but for German: Adding another input language always chan… - Apple Community


I have Swedish hardware, meaning my physical keyboard uses the Swedish standard characters and layout. I also type a lot in English and would like to be able to switch the text input language to English (UK) but keep the Swedish keyboard layout when I do so. For example, on the Swedish keyboard you find the letter ”Ö” where on the UK keyboard you will find the semicolon (;). The Swedish keyboard semicolon is instead input as ”shift + .” ; I hope what I am getting at here is clear, but to clarify further: I'd like to be able to have my input language set to English (UK) but produce the letter "Ö" when I press the corresponding key on the Swedish hardware keyboard; as it is now with English (UK) input language, pressing the same key gives me a semicolon instead, as per the British standard.


In the linked thread above, it seems someone wrote code to fix this issue for German. How can I accomplish the same but for Swedish?


Thanks for any help with this.

MacBook Air (M4, 2025)

Posted on Aug 28, 2025 10:45 AM

Reply
15 replies

Aug 28, 2025 12:56 PM in response to KJswe

KJswe wrote:

I also type a lot in English and would like to be able to switch the text input language to English (UK) but keep the Swedish keyboard layout when I do so.

Could you explain what exactly does not work right when you try to type English with the Swedish keyboard layout? Is it the spell check/autocorrect? Which app exactly?


(Normally spellcheck for Apple apps is set independently of the keyboard layout).

Aug 28, 2025 01:26 PM in response to KJswe

Any reason you don't just switch back and forth when needed between the layouts?


You can tap on the Globe 🌐 (fn) key to switch layouts on the fly. That way you can type whatever Swedish character you need, then go back to the English if required with a single tap.


System Settings ➜ Keyboard ➜ Press 🌐 Key To... and set it to "Change Input Source".

Aug 29, 2025 03:26 AM in response to Tom Gewecke

I will be honest and admit that this machine is a much needed upgrade for me, coming from an old intel mac, so it might be my habits that are outdated. One particularly annoying issue that I hope someone at Apple registers is smart quote behaviour. In Swedish writing the standard quote format is 99text99 whereas in English it's 66text99. If I set Swedish style smart quotes then this will carry over to when I type in English. Likewise, if I set English style smart quotes they carry over when I type in Swedish. Perhaps it is too much to hope for to have this setting change along with globe key triggered language switch, but it would be immensely helpful, especially for those of us who do a lot of academic writing in different languages. I will follow your link when I get a moment and report back. Thank you so much for helping out.

Aug 29, 2025 05:10 AM in response to KJswe

KJswe wrote:

One particularly annoying issue that I hope someone at Apple registers is smart quote behaviour. In Swedish writing the standard quote format is 99text99 whereas in English it's 66text99. If I set Swedish style smart quotes then this will carry over to when I type in English. Likewise, if I set English style smart quotes they carry over when I type in Swedish.

The keyboard itself cannot handle that problem. Normally it is done by the app. For example, in Word the quote behavior follows the language keyboard being used, example below.


Are there other problems you have typing English with the Swedish keyboard layout?


Is the main thing you are looking for that the app somehow use English style quotes when you are typing English with the Swedish layout, and then switch to Swedish style quotes when you are typing Swedish with the Swedish layout?


Aug 29, 2025 09:27 AM in response to Tom Gewecke

When you say "follows the language keyboard", do you mean the one set for input via the globe key or the language set for the specific document?


And, yes, what I am looking for is exactly what you describe: Swedish layout keyboard (all characters mapped onto the same key as on the physical keyboard itself) and being able to switch between English style quotes and dashes and Swedish style quotes and dashes with the press of a button. Use case example would be engaging in two separate email or slack exchanges, one in Swedish and one in English and being able to quickly set the quotation and dashes for the language used as I jump between conversations. The people I communicate with tend to be particular about these things and it would be nice to always have the correct language style presentation without having to dive into menus or learning key combinations that feel unnatural and slow me down.


Perhaps it is possible to write a script instructing Mac OS to switch quotation marks and dashes settings upon switching input language? (... all this whilst also being able to use the Swedish keyboard layout for English language typing.)


I hope this makes sense. Thanks so much for taking the time with this matter.

Aug 29, 2025 11:24 AM in response to KJswe

KJswe wrote:

Perhaps it is possible to write a script instructing Mac OS to switch quotation marks and dashes settings upon switching input language? (... all this whilst also being able to use the Swedish keyboard layout for English language typing.)

I think that is the most likely way to accomplish what you want (aside from first composing in Word or another word processor with similar capabilities). I doubt you will find it in any email, messaging, or slack type app. You might want to ask in this other forum, where there may be more people familiar with scripting of various sorts.


https://apple.stackexchange.com/

Aug 29, 2025 01:45 PM in response to Tom Gewecke

Thank you ever so much for all of your help with this. It's very helpful knowing that this will work on an app by app basis. I suppose I will end up setting the default to English quotation marks and use the—to me—complicated shift+option+2 command to force Swedish quotation marks when I need to use them. The custom keyboard you sorted should come preinstalled!

Aug 30, 2025 12:07 PM in response to Tom Gewecke

Hi again, I think I will simply adjust. I don't want to go too far into customisation such that I will be confused if I have to type on a loaner computer or shared workstation. However, if it is at all possible, there is one thing you could help me with. The custom keyboard you provided which does behave very well in MS Word (finally downloaded and tested) is somehow set to US English, meaning British spelling will be flagged or autocorrected (-ise becomes -ize, colour becomes color, etc.). Would it be possible for you to change the language associated with the custom keyboard to British English? I would be so very grateful. Here is also a screenshot from within MS Word showing what I mean.



[Edited by Moderator]

Sep 1, 2025 06:32 AM in response to KJswe

PS It looks like the EN-GB keyboard does not trigger Word spell check in the way desired. You can try this other one, which uses the word "British" instead to see if it works.


If you got a warning message about keyboard developers being able to access your typing when you installed those files, that is a an error in Sequoia. It only applies to certain apps. These keyboards are really just text files, you can make them yourself with Ukelele, and the person who makes them has no access to anything. Hundreds have been created over the last 20 years and are in wide use with no problems.




Keyboard layout modification: how can I get the Swedish keyboard layout for all languages?

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