I have created a custom keyboard layout (
.keylayout file) and remapped (amongst other keys) the
V keys. However, I want to keep Cmd+X/C/V like on the QWERTY, because it's practical and I am used to it.
So in my layout, I have kept the original
X, C, V mappings for when Command is pressed:
<keyMap index="0"> <!-- No modifiers --> ... <key code="7" action="y" /> <!-- my modified layout --> <key code="8" action="x" /> <key code="9" action="." /> ... <keyMap index="10"> <!-- command --> ... <key code="7" output="x" /> <!-- same as qwerty --> <key code="8" output="c" /> <key code="9" output="v" />
This works well except for Command+. (which should do a Command+V, i.e. paste) in Safari, Mail and a few other Apple applications… In that case, using the original V key (on a QWERTY keyboard) does work…
I don't understand why it fails just for this shortcut? I've read that some
Cmd+… shortcuts are special and can't be overridden, but why does it work with cut/copy but not with paste? And why does it work in all applications except Safari and Mail?
I've used the bepo (french dvorak) layout and edited it in a text editor. My version is on GitHub. I have opened my layout in Ukulele and it shows it quite fine, is there anything I could try with it to debug/detect problems?
I have also tried to open+save my layout with Ukulele and it doesn't work anymore, it's not even detected by OS X. I have reverted back to my version.