A simple Sublime Text 3 plugin that adds a hotkey to deselect all selected text; based on a forum post by Liam Cain.
The hotkey defaults to Esc. Use the deselect command in your key bindings to customize it, e.g.:
[
{ "keys": ["escape"], "command": "deselect", "context":
[
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
}
]Please make sure to include the context in your custom key binding as it might otherwise interfere with other Sublime functions.
Copyright 2012 Liam Cain
Copyright 2014 Glutanimate