Addresses https://github.com/Pita/etherpad-lite/issues/173 but needs a lot of testing and a word of warning, at current doing shift tab deletes the previous character as it emulates a backspace.
This commit is contained in:
parent
2e79bd50a3
commit
697201b3de
|
@ -3579,12 +3579,18 @@ 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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue