Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swapped key in Spanish ISO: "ºª" vs "<>" #1035

Closed
d4nirod opened this issue Oct 10, 2017 · 38 comments
Closed

Swapped key in Spanish ISO: "ºª" vs "<>" #1035

d4nirod opened this issue Oct 10, 2017 · 38 comments
Labels

Comments

@d4nirod
Copy link

d4nirod commented Oct 10, 2017

When using Karabiner Elements on a MBP Sierra with a Spanish ISO keyboard and the same input source selected in MacOS the symbols printed by the key with Spanish ordinal "º" ("ª" with shift) located left to the "1" and the key for "<" or ">" located left of the "Z" are swapped. If I quit Karabiner the problem is gone.

@JZfi
Copy link

JZfi commented Oct 13, 2017

The same happens with a Finnish key layout both on the MBP's own keyboard and with external keyboards. The key left from Z (<>) and left from 1 (¶°) are swapped when Karabiner Elements is running. The OSX version is 10.12.6 and I'm running 11.1.0. This has happened for a longer time spanning many previous Karabiner Element versions.

@eMerzh
Copy link

eMerzh commented Oct 16, 2017

Hi,
seems i got the same thing in french, >< remapped to @# (bellow the esc key)

did you guys found a work arround ?

@bytesplit
Copy link

I made this adjustment and everything is as expected now:
Preferences > Virtual Keyboard > Keyboard Type : Set to ISO

German layout Cherry PC-keyboard and configured as such in OS. It seems that by default Karabiner makes all keyboards ANSI.

@eMerzh
Copy link

eMerzh commented Oct 20, 2017

💥 perfect @bytesplit ... forks for me! many thanks

@mkborregaard
Copy link

doesn't work for me.

@eMerzh
Copy link

eMerzh commented Oct 26, 2017

eratum: it work but only for one of my keyboard, it's either the internal either the external.... not both

@bytesplit
Copy link

I actually deactivated Karabiner in Devices for the internal keyboard. I don't use it when I have the external connected (think docked) and it would indeed reverse-swap the keys. Seems like Apple thinks ANSI for it's own international keyboards.

So test with all attached keyboards!

@pascalpoizat
Copy link

same problem than @eMerzh :-(

@stale
Copy link

stale bot commented Mar 3, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Mar 3, 2018
@MonsieurLanza
Copy link

MonsieurLanza commented Mar 8, 2018

Those keys are swapped here in FR ISO Macbook Keyboard here. Same keys, different labels due to FR layout : @# and <> are swapped.

@stale stale bot removed the stale label Mar 8, 2018
@deram
Copy link

deram commented Mar 8, 2018

For my Finnish MBP keyboard, ANSI is the correct setting, and it is ISO that gives swapped characters. for example the mentioned <> vs. §°

All seems fine with ANSI setting selected, except the mapping is different from the picture next to the radio-button.

@OMA2k
Copy link

OMA2k commented May 14, 2018

Hello everyone. The solution @bytesplit mentioned used to work (Preferences > Virtual Keyboard > Keyboard Type : Set to ISO), but recent versions of Karabiner-Elements don't have any ANSI/ISO option anymore so the swapped keys problem still remains.

Now in the "Virtual Keyboard" tab you can just specify a numeric "Country Code", and I don't know what number I should specify. How do I find what's the proper number for the Spanish keyboard layout?

@OMA2k
Copy link

OMA2k commented May 23, 2018

@ohcibi : What "patch note" are you referring to? I've already done the "Change keyboard type" several times, but I still get the swapped keys when Karabiner is running.

What "wrong" keyboard are you selecting so it works correctly when Karabiner is running?

@OMA2k
Copy link

OMA2k commented May 25, 2018

This unfortunately doesn't work for me.

If I try to detect the keyboard while Karabiner-Elements is running, when I press "><" I get the message "The keyboard can't be identified".

If I try to detect the keyboard with Karabiner-Elements closed, then it works, but even if I select ANSI instead of ISO, the "><" and "ªº" keys are swapped no matter if I run Karabiner-Elements or not (for some reason Karabiner doesn't spontaneously swap the keys in ANSI mode, only in ISO mode).

To sum up:

  • In ISO mode, "><" and "ªº" keys are swapped only when Karabiner-Elements is running.
  • In ANSI mode, "><" and "ªº" keys are swapped no matter if Karabiner-Elements is running or not.

So I don't have the proper keys unless in ISO mode and with Karabiner-Elements closed.

Also, for some stupid reason only Apple knows, after using it a few times, the "Change Keyboard Type..." button has completely DISAPPEARED from the Keyboard settings window! Now I can't use that button because it doesn't exist. WTF?!

Any suggestions?

@e-gaulue
Copy link

I add exactly this trouble but with a french keyboard. You need to reset your keyboard type. Have a look at #1365 (comment).

@stale
Copy link

stale bot commented Jul 24, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 24, 2018
@stale stale bot closed this as completed Jul 31, 2018
@OMA2k
Copy link

OMA2k commented Oct 1, 2018

This problem is still happening with the latest 12.1.5 version of Karabiner-Elements. The <> and ºª keys are still swapped in the Spanish keyboard. Please, fix it!!!

@vladdeSV
Copy link

vladdeSV commented Mar 12, 2019

This issue is happening at 12.2.2, with a Swedish MacBook Pro keyboard layout

§° and <> are swapped respectively.

@OMA2k
Copy link

OMA2k commented Mar 13, 2019

@ohcibi What better tool are you talking about?

@ohcibi ohcibi mentioned this issue Mar 13, 2019
@OMA2k
Copy link

OMA2k commented Mar 13, 2019

I see. You could have typed "BetterTouchTool", which is the actual name of the app, rather than "better touch tool" all lowercase and with spaces between the words, which didn't look like an app name at all but just a passing comment about some "better touch tool". I ignored the "touch" part in my comment because that didn't make sense to me when we're talking about keyboards.

For people reading this, here's the link of the app's website: https://folivora.ai/

The pricing is not bad at all. $6.50 for 2 years of updates (and you can keep using the app after that period even if you don't get any more updates), or $20 for a lifetime license which also gives you access to other apps as well included in the price.

Sorry for the somewhat off-topic post, but this is relevant when the developer of Karabiner-Elements won't listen to our bug report at all!

@OMA2k
Copy link

OMA2k commented Mar 13, 2019

Did you really get offended by my comment? I just suggested you could have called it like it's actually called by its author, BetterTouchTool. I didn't mean to tick you off ;).
BTW, thanks for suggesting this app.

Well, I have tried it, but I can't seem to get it to do what I need: Globally swapping the Ctrl key and the Cmd key. The keyboard part in this app seems to be focused in shortcuts rather than single keys. Do you know how to configure this to swap these modifier keys?

@OMA2k
Copy link

OMA2k commented Mar 13, 2019

@ohcibi And now you delete all of your posts here? Just because of a single innocent suggestion on the spelling of the app you mentioned? So you're removing useful information for everyone just because you somehow got offended by a light unimportant comment I made. Some people get so easily offended...

At least people can still read my message about the name of the app and link to their website.

@OMA2k
Copy link

OMA2k commented Mar 13, 2019

Well, bad news for me and anyone who wants to remap keys: One of the admins at the BetterTouchTool website told me that "BetterTouchTool is not a good tool for key remappings. You should consider using Karabiner Elements app for that"

Heh, yeah, so we're back to square zero :(

This issue has been plaguing a lot of users since at least 2 years ago. I hope the Karabiner-Elements developer can notice us and take a look at this issue.

@OMA2k
Copy link

OMA2k commented May 7, 2019

A couple of months and several updates later the problem still remains.

Why is this issue closed? This issue has NOT been resolved at all!!! :(

@AlexLeaP
Copy link

AlexLeaP commented Mar 18, 2020

I solved it (Germany, ^ swapped with </>): I just randomly entered a 7 as the keyboard country code. The Mac then says my keyboard is not identified, so I click on identify; asks me to press the key next to Shift; asks me to select between ANSI, ISO or JIS, I select ISO and tadaaaa everything fine again! Hope this helps someone else as well!

@vtselfa
Copy link

vtselfa commented Mar 18, 2020

Hi, you have a list of country codes to use here.
For spanish is 25. The only problem is that it may mess with your macbook keyboard, so when you want to use it you may have to change the code back to 0.

@aclemente-bigml
Copy link

aclemente-bigml commented Apr 7, 2021

I still have this same issue.
I can fix this by forcing a keyboard type change and pressing the corresponding key in either the external keyboard or the MBP's internal, but I can't make both work at the same type.

Both keyboards are the same Spanish ISO layout, and I have it configured as such.

Also, for what it's worth, I ran this

defaults read /Library/Preferences/com.apple.HIToolbox.plist AppleEnabledInputSources

And the output is:

(
        {
        InputSourceKind = "Keyboard Layout";
        "KeyboardLayout ID" = 87;
        "KeyboardLayout Name" = "Spanish - ISO";
    }
)

@OMA2k
Copy link

OMA2k commented Apr 7, 2021

Since this problem with the Spanish (an other languages) keyboard was never fixed, my solution to the issue was adding a key mapping so "grave_accent_and_tilde (`)" gets swapped with "non_us_backslash" and viceversa (2 rules). By doing that, the keyboard is back to normal.

@aclemente-bigml
Copy link

Yes, I ended up finding that solution as well, and it solved it for me for the time being.

@raine
Copy link

raine commented Oct 27, 2021

I need multiple profiles because for Macbook integrated keyboard, virtual keyboard country code 0 is needed, and for my external ISO keyboard, it's country code 2. So every time I switch keyboards, I have to change the karabiner profile manually between those two.

Is there a way to avoid having to manually switch the profile? It is quite a nuisance. I was thinking maybe some kind of tool could change the profile based on last used input device.

@joppuyo
Copy link

joppuyo commented Oct 27, 2021

@raine Have you tried selecting the external keyboard under simple modifications and creating a mapping from grave_accent_and_tilde (`) to non_us_backslash and vice versa? This should apply the change only to the external keyboard.

@raine
Copy link

raine commented Oct 27, 2021

@raine Have you tried selecting the external keyboard under simple modifications and creating a mapping from grave_accent_and_tilde (`) to non_us_backslash and vice versa? This should apply the change only to the external keyboard.

This approach seems to have worked. Thanks!

@pascalpoizat
Copy link

Thanks a lot @joppuyo, it works well for French keyboard between #/@ and </> too.
Cheers.

@omar1989omb
Copy link

Thanks @joppuyo , I have been looking for a solution to this problem for several days since I changed keyboard.

@Pablompg
Copy link

@raine Have you tried selecting the external keyboard under simple modifications and creating a mapping from grave_accent_and_tilde (`) to non_us_backslash and vice versa? This should apply the change only to the external keyboard.

Life saver!

@elmart-devo
Copy link

Also bitten by this (spanish keyboard exchanging < and º keys). It's a pity this has been open and unresolved for so long.

@joppuyo
Copy link

joppuyo commented Sep 10, 2023

Also bitten by this (spanish keyboard exchanging < and º keys). It's a pity this has been open and unresolved for so long.

I'm actually not sure if this is a problem with Mac OS, keyboard vendors, or Karabiner Elements.

My issue was specifically that an external keyboard had these two keys swapped and I used Karabiner Elements to fix this issue as I wrote in my blog. I think in this case the keyboard vendor was using some kind of spoofed Apple profile for the keyboard and this caused issues with the operating system.

But it could be that there's an actual bug in Karabiner related to these two keys changing when it's actually not intended.

@elmart-devo
Copy link

@joppuyo Yes, you may be right and this can be not Karabiner's fault but rather the device's.
It also happened to me with an external mechanical keyboard (a Newskill Pyros Ivory), and after posting the above, I did a lot more tries, and somehow I ended up in a stable situation where I have country code set to zero, with ISO Spanish Layout, and I don't need to exchange the keys anymore. But that was exactly my initial situation when I reported the mentioned malfunction. So I don't really know what happened. Maybe it was due to the device, maybe some Karabiner state, maybe some strange interaction between the two things.

Thanks for pointing that out, and I just leave here my correction to my previous comment for the record.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests