Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

In Fusion, add these keyboard mappings:

  1. Shift+Option+8 to Control+Alt+7
  2. Shift+Option+9 to Control+Alt+0
share|improve this answer
    
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 '12 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 –  Torstein Hønsi Nov 15 '12 at 10:31

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.

share|improve this answer
    
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 '10 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 '10 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 '10 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 '10 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 '10 at 14:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.