Merge pull request #227 from jtlebi/origin/shift-tab

handle shift+tab, trivial fix
This commit is contained in:
John McLear 2011-11-24 08:04:04 -08:00
commit 40fcc83a05

View file

@ -3579,18 +3579,12 @@ function OUTER(gscope)
editorInfo.ace_doIndentOutdent = doIndentOutdent; editorInfo.ace_doIndentOutdent = doIndentOutdent;
function doTabKey(shiftDown) function doTabKey(shiftDown)
{
if (shiftDown === true){
doDeleteKey();
}
else
{ {
if (!doIndentOutdent(shiftDown)) if (!doIndentOutdent(shiftDown))
{ {
performDocumentReplaceSelection(THE_TAB); performDocumentReplaceSelection(THE_TAB);
} }
} }
}
function doDeleteKey(optEvt) function doDeleteKey(optEvt)
{ {