Refactoring and bug fixing in the set_hotkeys() method.
Disabling the application actually disables all hotkeys, including the compose key.