mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
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
1 changed files with 8 additions and 2 deletions
|
@ -3580,9 +3580,15 @@ function OUTER(gscope)
|
||||||
|
|
||||||
function doTabKey(shiftDown)
|
function doTabKey(shiftDown)
|
||||||
{
|
{
|
||||||
if (!doIndentOutdent(shiftDown))
|
if (shiftDown === true){
|
||||||
|
doDeleteKey();
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
performDocumentReplaceSelection(THE_TAB);
|
if (!doIndentOutdent(shiftDown))
|
||||||
|
{
|
||||||
|
performDocumentReplaceSelection(THE_TAB);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue