mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
Merge pull request #227 from jtlebi/origin/shift-tab
handle shift+tab, trivial fix
This commit is contained in:
commit
40fcc83a05
1 changed files with 2 additions and 8 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue