mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-20 03:25:03 +00:00
Update KeyComposition.java
This commit is contained in:
parent
49b2e63d13
commit
216e103513
1 changed files with 30 additions and 0 deletions
|
@ -20,6 +20,8 @@ public final class KeyComposition {
|
|||
private static final String KEY_DEAD_CIRCUMFLEX = "\u0302";
|
||||
private static final String KEY_DEAD_TILDE = "\u0303";
|
||||
private static final String KEY_DEAD_UMLAUT = "\u0308";
|
||||
private static final String KEY_DEAD_RING_ABOVE = "\u030A";
|
||||
private static final String KEY_DEAD_CARON = "\u030C";
|
||||
|
||||
private static final Map<Character, String> COMPOSITION_MAP = createDecompositionMap();
|
||||
|
||||
|
@ -51,6 +53,14 @@ public final class KeyComposition {
|
|||
return KEY_DEAD_UMLAUT + c;
|
||||
}
|
||||
|
||||
private static String ringAbove(char c) {
|
||||
return KEY_DEAD_RING_ABOVE + c;
|
||||
}
|
||||
|
||||
private static String caron(char c) {
|
||||
return KEY_DEAD_CARON + c;
|
||||
}
|
||||
|
||||
private static Map<Character, String> createDecompositionMap() {
|
||||
Map<Character, String> map = new HashMap<>();
|
||||
map.put('À', grave('A'));
|
||||
|
@ -169,6 +179,26 @@ public final class KeyComposition {
|
|||
map.put('ẍ', umlaut('x'));
|
||||
map.put('ẗ', umlaut('t'));
|
||||
|
||||
map.put('Ů', ringAbove('U'));
|
||||
map.put('ů', ringAbove('u'));
|
||||
|
||||
map.put('Č', caron('C'));
|
||||
map.put('Ď', caron('D'));
|
||||
map.put('Ě', caron('E'));
|
||||
map.put('Ň', caron('N'));
|
||||
map.put('Ř', caron('R'));
|
||||
map.put('Š', caron('S'));
|
||||
map.put('Ť', caron('T'));
|
||||
map.put('Ž', caron('Z'));
|
||||
map.put('č', caron('c'));
|
||||
map.put('ď', caron('d'));
|
||||
map.put('ě', caron('e'));
|
||||
map.put('ň', caron('n'));
|
||||
map.put('ř', caron('r'));
|
||||
map.put('š', caron('s'));
|
||||
map.put('ť', caron('t'));
|
||||
map.put('ž', caron('z'));
|
||||
|
||||
return map;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue