Sublime Forum

Dealing with dead keys

#1

I’m on OSX 10.7.4 using german locale and keyboard input.

The german keyboard layout uses dead keys ( http://en.wikipedia.org/wiki/Dead_key ) for `,´, and ^, meaning that after these symbols another character has to be entered before both characters are interpreted.

Because of this I can’t use stuff like this

{ "keys": "`"], "command": "insert_snippet", "args": {"contents": "`${0:$SELECTION}`"}, "context":
        
            { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
            { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
            { "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true }
        ]
    },

from the awesome MarkdownEditing package

Sublime Text 2 waits for the other character instead of acting out the command. After much work I created a german keyboard layout without dead keys as a workaround but I think this should be handled by Sublime Text 2and not by a special keyboard layout.

For all who are interested in the keyboard layout can have a look at
github.com/oschrenk/keylayout-de_DE-no-deadkeys

0 Likes

#2

I have the same problem here with an Azerty keyboard under OS X. I guess I should have switched (or will switch one day) to Qwerty a long time ago even if accented characters are not easy to type.

0 Likes