I need a custom keyboard shortcut for back slash \.
I have created ~/Library/KeyBindings/DefaultKeyBinding.dict
and put this in it:
{
"@ö" = ("insertText:", "\\");
}
It is supposed to trigger back slash when pressing ⌘ + ö (Yes, I have an "ö" character on my keyboard).
When trying to source
the file, I get this error:
-bash: DefaultKeyBinding.dict: line 2: syntax error near unexpected token `('
-bash: DefaultKeyBinding.dict: line 2: ` "@ö" = ("insertText:", "\\");'
What's wrong with the syntax? Is there a better way?