Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba99d8cd authored by Jean Chalard's avatar Jean Chalard
Browse files

Allow double-space-to-period after a plus char

Bug: 10704936
Change-Id: I30fdaea648605ef7e7fea6c093581ed5c6de03f3
parent 9b78241d
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -164,9 +164,7 @@ public final class Constants {
    public static final int CODE_EXCLAMATION_MARK = '!';
    public static final int CODE_EXCLAMATION_MARK = '!';
    public static final int CODE_SLASH = '/';
    public static final int CODE_SLASH = '/';
    public static final int CODE_COMMERCIAL_AT = '@';
    public static final int CODE_COMMERCIAL_AT = '@';
    // TODO: Check how this should work for right-to-left languages. It seems to stand
    public static final int CODE_PLUS = '+';
    // that for rtl languages, a closing parenthesis is a left parenthesis. Is this
    // managed by the font? Or is it a different char?
    public static final int CODE_CLOSING_PARENTHESIS = ')';
    public static final int CODE_CLOSING_PARENTHESIS = ')';
    public static final int CODE_CLOSING_SQUARE_BRACKET = ']';
    public static final int CODE_CLOSING_SQUARE_BRACKET = ']';
    public static final int CODE_CLOSING_CURLY_BRACKET = '}';
    public static final int CODE_CLOSING_CURLY_BRACKET = '}';
+2 −1
Original line number Original line Diff line number Diff line
@@ -1394,7 +1394,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
                || codePoint == Constants.CODE_CLOSING_PARENTHESIS
                || codePoint == Constants.CODE_CLOSING_PARENTHESIS
                || codePoint == Constants.CODE_CLOSING_SQUARE_BRACKET
                || codePoint == Constants.CODE_CLOSING_SQUARE_BRACKET
                || codePoint == Constants.CODE_CLOSING_CURLY_BRACKET
                || codePoint == Constants.CODE_CLOSING_CURLY_BRACKET
                || codePoint == Constants.CODE_CLOSING_ANGLE_BRACKET;
                || codePoint == Constants.CODE_CLOSING_ANGLE_BRACKET
                || codePoint == Constants.CODE_PLUS;
    }
    }


    // Callback for the {@link SuggestionStripView}, to call when the "add to dictionary" hint is
    // Callback for the {@link SuggestionStripView}, to call when the "add to dictionary" hint is