Wrong keyboard layout with external keyboard (Swedish)

So i have a swedish das keyboard, and the location of < and § is flipped on MacOS Ventura 13.3.1.

I tried looking in the keyboard layouts and it seems like they are wrong.


The reason i care is because when you program the > is used quite a lot,

so i have to fix this if im going to be able to use this computer professionally.


People have had similar issues before in this thread. They claim apple fixed the issue, but for me the issue still exists. I have made sure my keyboard is set to the ISO standard, it does not help.

https://discussions.apple.com/thread/251045201?login=true


Is there any fix?


Posted on Apr 27, 2023 1:53 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 27, 2023 7:21 AM

Hi. The problem is only with the external keyboard. It is mapped correctly on the apple keyboard.


I also discovered that simply installing and enabling the app Karabiner Elements solves the issue with the external keyboard.

Similar questions

9 replies

May 9, 2023 7:12 AM in response to JakSte

This problem came back, but i managed to craft a console command which does not require karabiner elements, although im sure you could also fix this using that tool. You can use Karabiner-EventViewer to find these usb HID key codes.


hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000035,"HIDKeyboardModifierMappingDst":0x700000064},{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000035}]}'



Apr 27, 2023 6:49 AM in response to JakSte

I have added the Swedish layout, as well as the Swedish Sami-PC layout.

I cannot reproduce the problem. The < key is at the bottom left and the § key is at the top left.

(I do not have an external keyboard at the moment, I am using the built-in keyboard on my MBP.)


Did you try in a new user account, or in your regular account when booted in Safe Mode? Does it make any difference?




This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Wrong keyboard layout with external keyboard (Swedish)

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