mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-05 22:30:12 +00:00
switch internal codes for functional keys to the same as florisboard
for better compatibility of layouts also convert labels
This commit is contained in:
parent
7b0ee924ae
commit
a34b3f4cdd
40 changed files with 448 additions and 410 deletions
|
@ -9,6 +9,7 @@ package helium314.keyboard.latin.common;
|
|||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import helium314.keyboard.keyboard.internal.keyboard_parser.floris.KeyCode;
|
||||
import helium314.keyboard.latin.utils.ScriptUtils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
@ -586,7 +587,7 @@ public final class StringUtils {
|
|||
final String label = newSingleCodePointString(code);
|
||||
final String titleCaseLabel = toTitleCaseOfKeyLabel(label, locale);
|
||||
return codePointCount(titleCaseLabel) == 1
|
||||
? titleCaseLabel.codePointAt(0) : Constants.CODE_UNSPECIFIED;
|
||||
? titleCaseLabel.codePointAt(0) : KeyCode.NOT_SPECIFIED;
|
||||
}
|
||||
|
||||
public static int getTrailingSingleQuotesCount(@NonNull final CharSequence charSequence) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue