Check for possible snippet expansion before attempting to proceed to the next tabstop.

This commit is contained in:
Ryan Griffith 2013-12-09 10:04:38 -05:00
commit 2b10c2071f

View file

@ -809,6 +809,10 @@ var TabstopManager = function(editor) {
this.keyboardHandler = new HashHandler(); this.keyboardHandler = new HashHandler();
this.keyboardHandler.bindKeys({ this.keyboardHandler.bindKeys({
"Tab": function(ed) { "Tab": function(ed) {
if (exports.snippetManager && exports.snippetManager.expandWithTab(ed)) {
return;
}
ed.tabstopManager.tabNext(1); ed.tabstopManager.tabNext(1);
}, },
"Shift-Tab": function(ed) { "Shift-Tab": function(ed) {