| 1018 | } |
| 1019 | |
| 1020 | KeyID KeyMap::getDeadKey(KeyID key) |
| 1021 | { |
| 1022 | if (isDeadKey(key)) { |
| 1023 | // already dead |
| 1024 | return key; |
| 1025 | } |
| 1026 | |
| 1027 | switch (key) { |
| 1028 | case '`': |
| 1029 | return kKeyDeadGrave; |
| 1030 | |
| 1031 | case '\'': |
| 1032 | case 0xb4u: |
| 1033 | return kKeyDeadAcute; |
| 1034 | |
| 1035 | case '^': |
| 1036 | case 0x2c6: |
| 1037 | return kKeyDeadCircumflex; |
| 1038 | |
| 1039 | case '~': |
| 1040 | case 0x2dcu: |
| 1041 | return kKeyDeadTilde; |
| 1042 | |
| 1043 | case 0xafu: |
| 1044 | return kKeyDeadMacron; |
| 1045 | |
| 1046 | case 0x2d8u: |
| 1047 | return kKeyDeadBreve; |
| 1048 | |
| 1049 | case 0x2d9u: |
| 1050 | return kKeyDeadAbovedot; |
| 1051 | |
| 1052 | case 0xa8u: |
| 1053 | return kKeyDeadDiaeresis; |
| 1054 | |
| 1055 | case 0xb0u: |
| 1056 | case 0x2dau: |
| 1057 | return kKeyDeadAbovering; |
| 1058 | |
| 1059 | case '\"': |
| 1060 | case 0x2ddu: |
| 1061 | return kKeyDeadDoubleacute; |
| 1062 | |
| 1063 | case 0x2c7u: |
| 1064 | return kKeyDeadCaron; |
| 1065 | |
| 1066 | case 0xb8u: |
| 1067 | return kKeyDeadCedilla; |
| 1068 | |
| 1069 | case 0x2dbu: |
| 1070 | return kKeyDeadOgonek; |
| 1071 | |
| 1072 | default: |
| 1073 | // unknown |
| 1074 | return kKeyNone; |
| 1075 | } |
| 1076 | } |
| 1077 |
nothing calls this directly
no outgoing calls
no test coverage detected