Stop Shift+Backspace from foward deleting.

Bug: 17538139
Change-Id: Ia193c59058d99880ea5afe5bd1bbcc0dce97f9d4
This commit is contained in:
Michael Wright
2015-04-15 12:30:31 +01:00
parent 1fbdc5c782
commit 375f3153a9

View File

@@ -97,7 +97,7 @@ public abstract class BaseKeyListener extends MetaKeyKeyListener
// Delete a character.
final int start = Selection.getSelectionEnd(content);
final int end;
if (isForwardDelete || event.isShiftPressed() || isShiftActive) {
if (isForwardDelete) {
end = TextUtils.getOffsetAfter(content, start);
} else {
end = TextUtils.getOffsetBefore(content, start);