Merge "Stop Shift+Backspace from foward deleting."

This commit is contained in:
Michael Wright
2015-04-16 21:46:10 +00:00
committed by Android (Google) Code Review

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);