typing a space in email fields is possible again
This commit is contained in:
parent
ac94941ae9
commit
ba611c92be
2 changed files with 11 additions and 1 deletions
|
|
@ -225,7 +225,17 @@ abstract public class InputMode {
|
||||||
}
|
}
|
||||||
|
|
||||||
ArrayList<String> ordered = new ArrayList<>();
|
ArrayList<String> ordered = new ArrayList<>();
|
||||||
|
|
||||||
|
if (isEmailMode) {
|
||||||
|
if (unordered.contains("@")) ordered.add("@");
|
||||||
|
if (unordered.contains("_")) ordered.add("_");
|
||||||
|
}
|
||||||
|
|
||||||
for (String ch : settings.getOrderedKeyChars(language, key)) {
|
for (String ch : settings.getOrderedKeyChars(language, key)) {
|
||||||
|
if (isEmailMode && (ch.charAt(0) == '@' || ch.charAt(0) == '_')) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (unordered.contains(ch)) {
|
if (unordered.contains(ch)) {
|
||||||
ordered.add(ch);
|
ordered.add(ch);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ public class Characters extends Emoji {
|
||||||
* The English punctuation filtered to contain only valid email characters.
|
* The English punctuation filtered to contain only valid email characters.
|
||||||
*/
|
*/
|
||||||
final public static ArrayList<ArrayList<String>> Email = new ArrayList<>(Arrays.asList(
|
final public static ArrayList<ArrayList<String>> Email = new ArrayList<>(Arrays.asList(
|
||||||
new ArrayList<>(Arrays.asList("@", "_", "#", "%", "{", "}", "|", "^", "/", "=", "*", "+")),
|
new ArrayList<>(Arrays.asList("@", "_", " ", "#", "%", "{", "}", "|", "^", "/", "=", "*", "+")),
|
||||||
new ArrayList<>(Arrays.asList(".", "-", "&", "~", "`", "'", "!", "?"))
|
new ArrayList<>(Arrays.asList(".", "-", "&", "~", "`", "'", "!", "?"))
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue