Proper UK keyboard layout on a Mac mini - quotes on shift-2, hash, at etc.

I've just come home with a new Mac mini & generic keyboard, mouse etc. I've put them together and spent hours trying to set up the keyboard properly.

I've selected British in the input sources and been through the keyboard-recognise dialogue but to no avail - the keys are still in the wrong place.

A UK keyboard layout has the double-quote symbol on the shift-2 key and the @ (at) and hash keys next to the Enter key. It also has a back-slash symbol next to the left-hand shift key.

These keys are all essential to software development in Java, Python, HTML etc.

Would anyone be able to help, please?

I've never come across this problem before - Ubuntu recognises a UK keyboard layout, as does Windows. This machine is all but unusable with the @ & " keys in the wrong place.

Any assistance would be greatly received.

Mac mini, Mac OS X (10.6.2), generic keyboard & mouse

Posted on Jan 5, 2010 4:12 PM

Reply
4 replies

Jan 5, 2010 6:46 PM in response to pat128

OK - I now have most of the right keys in the right places. I had to generate a new .keylayout xml file and drop it into the Library/Keyboard Layouts directory.

I am just missing the Home and End keys and the logical-not, which I can just about live without.

I sincerely hope that there is a simpler way of doing this. If there isn't, I am very disappointed with this purchase.

It strikes me that Apple's reputation for quality and usability is a little overrated.

Not happy - will not be recommending.

Jan 8, 2010 4:10 AM in response to pat128

UK Mac keyboards do not have the speechmark (double-quote) on the Shift 2 key, UK PC keyboards do.

UK Mac keyboards have the speechmark key in the position that a PC keyboard would have the @ (at) symbol, i.e. over on the right next to the return key.

If your PC keyboard is a Microsoft or Logitech one, then one option would be to install their Mac software which should hopefully setup the right mapping. Or as you have done create a custom map, or put a label on the keys to 'correct' them.

Note: There are one or two other keys in different places between UK Mac and UK PC keyboards, this problem upsets some software used to link Mac and PCs, e.g. Remote Desktop Client 1.0 (2.0 fixed this), Timbuktu Pro (still broken after 10+ years), Virtual PC (for Mac), but VNC never had this problem (since it was not written by Americans who ignore this issue).

Jan 8, 2010 6:03 AM in response to John Lockwood

Thanks for the pointers - much appreciated.

Just to fill in a few blanks (for anyone else who may be experiencing the same issue) I've got the situation to a just about tolerable state now.

I created a keyboard mapping file using an application called Ukelele to put the double-quotes, "@", "#" etc. into their correct places. That file has gone into ~/Library/Keyboard Layouts/

That just left the Home & End keys. A call to a very helpful chap at Apple Support pointed me to an open source utility called DoubleCommand which allowed me to reconfigure the remaining "special" keys.

Most of the time I access my Mac Mini through VNC from an Ubuntu workstation. The standard built-in British layout seems to be OK in this scenario. I guess the VNC client must be sending the actual characters rather than the key number.

So that seems just about OK, but it does leave me a little irritated for the following reasons:-

1. the Mini is sold without a keyboard or mouse. The assumption would appear to be that you can use a standard generic UK keyboard. This doesn't appear to be the case (if correct operation is defined as having the key symbols mapped correctly). N.B. I've never had this problem with Linux, BSD or even Windows, which all support a wide range of international keyboard layouts.

2. I have a Mac wireless keyboard but I don't use it for anything serious because the keys are in the wrong place (or apparently missing in the case of the "#"). I've been developing software for *nix for decades now - I have no intention of trying to adjust my working habits to accommodate a foreign keyboard layout. "#", "@" & double quotes etc. are pretty frequent key presses in C, Python and Java, XML.

I use a number of different machines throughout the week - it would drive me absolutely crazy if the keys were in different places on one of them. It's a fundamental usability/ergonomics issue, not dissimilar to trying to use a left-handed mouse if you're right-handed!

The OS should be configurable to being used by the whole range of generic input devices - especially something as fundamental as a keyboard. Ignoring the fact that different countries use different layouts is either a serious oversight or a cynical attempt to squeeze a few more quid out of a new customer.

Basically, it appears that a new user cannot set-up a standard working environment on OSX without first getting their hands dirty with creating a key layout XML file. Whilst I'm reasonably happy to do this (if a little irritated) - there's no way I could recommend the Mac to a non-techie user in the UK.

Thanks for the response to the question, as I said, it is appreciated (grumbling aside). A helpful user community is worth a lot, but if I were Apple, I would give some thought to the impact this kind of issue has on the quality of the initial user experience.

Jan 11, 2010 4:43 AM in response to pat128

pat128 wrote:
Thanks for the pointers - much appreciated.

Just to fill in a few blanks (for anyone else who may be experiencing the same issue) I've got the situation to a just about tolerable state now.
Most of the time I access my Mac Mini through VNC from an Ubuntu workstation. The standard built-in British layout seems to be OK in this scenario. I guess the VNC client must be sending the actual characters rather than the key number.

So that seems just about OK, but it does leave me a little irritated for the following reasons:-

1. the Mini is sold without a keyboard or mouse. The assumption would appear to be that you can use a standard generic UK keyboard. This doesn't appear to be the case (if correct operation is defined as having the key symbols mapped correctly). N.B. I've never had this problem with Linux, BSD or even Windows, which all support a wide range of international keyboard layouts.

Thanks for the response to the question, as I said, it is appreciated (grumbling aside). A helpful user community is worth a lot, but if I were Apple, I would give some thought to the impact this kind of issue has on the quality of the initial user experience.


Believe me as I am a fellow Brit, I get equally annoyed about this issue. A US Mac keyboard layout and a US PC keyboard layout seem to work together fairly well, but non US Mac/PC layouts do not. Unfortunately as most stuff is developed in the US they don't notice this and also don't go out of their way to check and address it.

Apple are (in the Mac developer world) better than most in that their Remote Desktop software and their BootCamp drivers do properly address this. VNC as I mentioned was originally developed here in Cambridge, England (not Massachusetts) and hence never had this problem.

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.

Proper UK keyboard layout on a Mac mini - quotes on shift-2, hash, at etc.

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