mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-21 17:24:14 +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;
|
|||
import androidx.annotation.Nullable;
|
||||
|
||||
import helium314.keyboard.keyboard.internal.KeySpecParser;
|
||||
import helium314.keyboard.keyboard.internal.keyboard_parser.floris.KeyCode;
|
||||
import helium314.keyboard.latin.common.Constants;
|
||||
import helium314.keyboard.latin.common.StringUtils;
|
||||
|
||||
|
@ -62,7 +63,7 @@ public final class PunctuationSuggestions extends SuggestedWords {
|
|||
public String getWord(final int index) {
|
||||
final String keySpec = super.getWord(index);
|
||||
final int code = KeySpecParser.getCode(keySpec);
|
||||
return (code == Constants.CODE_OUTPUT_TEXT)
|
||||
return (code == KeyCode.MULTIPLE_CODE_POINTS)
|
||||
? KeySpecParser.getOutputText(keySpec)
|
||||
: StringUtils.newSingleCodePointString(code);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue