fix(composer): can shift-tab more places

Allow shift-tab to go back to subject from anywhere except in front of a
tab character
This commit is contained in:
Evan Morikawa 2016-09-30 19:35:39 -05:00
parent 8e3b436ba3
commit 80d2dbe10e
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ class TabManager extends ContenteditableExtension
if event.shiftKey
if DOMUtils.isAtTabChar(selection)
@_removeLastCharacter(editor)
else if DOMUtils.isAtBeginningOfDocument(editor.rootNode, selection)
else
return # Don't stop propagation
else
editor.insertText("\t")

@ -1 +1 @@
Subproject commit ec987d404aa18f8aaf5980c6b1a08dcf1e83dd71
Subproject commit e6976e8b8501aa13eb17a3e881d3ece886aac2a5