Hi Tom.
So I tried the other key like you suggested and still got the same message as in the link below. I am quite sure that there is something wrong somewhere because I don't have an external keyboard, just a mouse Logitech MX Master 3S that triggers the "keyboard settings assistant" or something like that when I put the bluetooth thingy in my docking.
After that, I used Karabiner to switch my keyboard to ANSI... and everything works now. The keys I type are exactly like on my macbook keyboard with the French keyboard layout. I find that weird because based on the link here How to identify your Apple keyboard layout by country or region - Apple Support the normal setting should be ISO instead of ANSI.
But anyway it works so thanks a lot.
Since we talked about Karabiner, I am trying to do something else because the French layout is horrendous for {}[] etc (programmer stuff). When I use the Karabiner EventsViewer, the keycode seems weird.
So this is the physical keyboard I have on my macbook https://cdn.shopify.com/s/files/1/0810/3669/files/mac-french-keyboard_1024x1024.png?5737506641424099145
I want to create this mapping:
- ( key for (
- ) key for )
- option + § for {
- option + è for }
- option + ç for [
- option + à for ]
the default combinations don't produce anything I ever type so it is fine. When I type these keys in the Karabiner event viewer, I see this:
- ( = keycode "5"
- ) = keycode "hyphen"
- option + ( = keycode left_option and 5
- option + ) = keycode left_option and hyphen
- option + shift + 5 = keycode left_option, left_shift, 5
- option + shift + ) = keycode left_option, left_shift, hyphen
First, that's a big problem for me because I can't find the key_code for the symbols I want ({}, []) which makes it impossible for me to create a complex combinations for them (or I haven't found how to do that yet).
I used ChatGPT but it proposed something I really don't like like
{
"from": {
"key_code": "6",
"modifiers": { "mandatory": ["left_option"] }
},
"to": [{ "shell_command": "osascript -e 'tell application \"System Events\" to keystroke \"{\"'" }],
"type": "basic"
}
I am not sure if that's the only way to do what I want because of the "dead keys".
Any idea how I can do the mapping I want with Karabiner without using osascript ?
Thanks.