added support for inserting snippets by shift+click