2009/9/12 Fredrik Bränström <[email protected]>: > Uh, wrong file. The .keylayout is located in the > .bundle/Contents/Resources... Attaching the .bundle.
Thanks, that worked. Now, there is something wrong with your keylayout file which can be checked by entering Ctrl-h in TextEdit -- this should act as back space but it just inserts "h" instead. Same thing obviously happens in MacVim. I can't tell you exactly what is wrong with your keylayout file however since I'm not at all familiar with them. What I can tell you is that pressing Ctrl-h on a US layout will generate a different key code than your layout does, so it seems that it is sending the wrong keycode (is this something you can specify?). This is the event that comes from pressing Ctrl-h with your layout: NSEvent: type=KeyDown loc=(0,753) time=20068.1 flags=0x40001 win=0x0 winNum=124 ctxt=0xc997 chars="^H" unmodchars="h" repeat=0 keyCode=38 ...and this is from Ctrl-h on a US layout: NSEvent: type=KeyDown loc=(0,753) time=20130.1 flags=0x40101 win=0x0 winNum=124 ctxt=0xc997 chars="^H" unmodchars="h" repeat=0 keyCode=4 As you can see they are fairly similar but the key code is different (and the flags, but that is in the lower 16 bits and has nothing to do with modifier keys). Anyway, hopefully you can figure out what the problem is...let me know how it goes. Björn --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_mac" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
