Sublime Forum

Can't type the letters "gh"

#1

When entering any word with the letters gh, the gh are automatically dropped. So attempting to type light ends in lit.
The problem has become rather annoying and I’m uncertain about where to start with this, is it a plugin etc.

Any help would be appreciated.

Thanks,
Ron Dyck

0 Likes

#2

Does this happen in any file you have open regardless of type (e.g. plain text, HTML, JavaScript) or only in files of certain type?

One thing to try would be to open the Sublime console with View > Show Console and enter the following commands:

sublime.log_commands(True)
sublime.log_input(True)

Then trigger the error by typing the word in a file and go back to the console to see what it says. You should see key events telling you what keys you pressed; if you see a command trigger after the g and h, then that would be a clue that there is key binding that’s doing you favours or something.

0 Likes

#3

Yes, it does happen in any file.

Turns out my Godef package is the culprit
file: Default (OSX).sublime-keymap

[
    { "keys": ["g","d"], "command": "godef" },
    // { "keys": ["g","h"], "command": "godef_prev" }
]

I commented out the second line.

Thanks for your help.
Ron

0 Likes