3

I have a macbook-pro with a swedish keyboard. To to get the curly brace '{' I press alt(=option)+shift+8, but to get the same character when I run vmware/windows I should press alt+7.

Oviously, I would like to use the same keyboard layout in mac and windows, how can I make this happen?

2 Answers 2

3

In Fusion, add these keyboard mappings:

  1. Shift+Option+8 to Control+Alt+7
  2. Shift+Option+9 to Control+Alt+0
3
  • Now, two years later I get the same problem and I find your answer. Thanks! (I may add the the kayboard mapping is done under VmWareFusion/preferences.../kayboard & mouse)
    – ragnarius
    Feb 7, 2012 at 13:19
  • Thanks! Also, I added these mappings for square brackets: 3. Options+8 to Control+Alt+8 4. Options+9 to Control+Alt+9 Nov 15, 2012 at 10:31
  • It says "Mac shortcut used more than once" when I try to add the setting suggested by @TorsteinHønsi. And I can't unselect the shortcut that is blocking "Option-8". It is in the section "Language-specific key mappings" Jul 15, 2019 at 5:57
1

You could use something like autohotkey, which will let you assign arbitrary key combinations to arbitrary tasks.

!+8::{

would set alt-shift-8 to {, for example.

10
  • Thanks ! (I can't score you because my own score is < 15) Now I am trying to learn autohotkey.... The script !+8::Send {{} works, but only when I have told Windows that my keyboard is "EN", and then I can't use the keys Å Ä Ö. Maybe it is possible to replace !+8 by the scan-code of the Alt- Shift- and 8-keys?
    – ragnarius
    Mar 21, 2010 at 10:59
  • @ragnarius; Well, ! means alt, + means shift, and 8 is obvious, it's quite a high-level key remapping, it goes on the letter, rather than the physical key pressed - does htting the 8 still produce an 8? (As for the accented symbols, you could assign those to keys (If you right-click the script, hit open and then view key history, you should be able to see which keys have been pressed recently))
    – Phoshi
    Mar 21, 2010 at 11:15
  • Thanks again, apparently the ALT-key on my right hand side generates a CTRL ALT, and the ALT-key on my left hand side is a windows shortcut for opening menues. Anyway, the script ^!+8::Send{{} makes the rhs-ALT-key work the way I like. --Thanks!
    – ragnarius
    Mar 21, 2010 at 12:09
  • 1
    Oh, yes. Right alt on most windows keyboards is "Alt Gr", which is effectively control alt, and lets me type things like € or á. AHK has a specific combo for alt-gr in <^>!, which is apparently more portable, so if you plan to use the script on multiple PCs that might be better.
    – Phoshi
    Mar 21, 2010 at 12:34
  • I encountered a new problem. I think it is incorrect to use "send" (my error), so I have removed it. The scripts a::| and b::{ produce a pipe and a curly bracket when I press a and b, the script <^>!7::| produces the desired pipe when I press AltGr7, but <^>!+8::{ does not produce anything (and if I "send" the curly bracket it translates to an AltGr7 which gives me the pipe).
    – ragnarius
    Mar 21, 2010 at 14:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .