mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am 1b986cc4
: Merge "Fix a bug with manual pick then dotcom key"
* commit '1b986cc488e7fb238c88b8cfe8e57bdbd494e56f': Fix a bug with manual pick then dotcom key
This commit is contained in:
commit
7716f89f22
@ -1326,10 +1326,12 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||
// Not a tld: do nothing.
|
||||
return text;
|
||||
}
|
||||
// We have a TLD (or something that looks like this): make sure we don't add
|
||||
// a space even if currently in phantom mode.
|
||||
mSpaceState = SPACE_STATE_NONE;
|
||||
final CharSequence lastOne = ic.getTextBeforeCursor(1, 0);
|
||||
if (lastOne != null && lastOne.length() == 1
|
||||
&& lastOne.charAt(0) == Keyboard.CODE_PERIOD) {
|
||||
mSpaceState = SPACE_STATE_NONE;
|
||||
return text.subSequence(1, text.length());
|
||||
} else {
|
||||
return text;
|
||||
|
Loading…
Reference in New Issue
Block a user