Skip to content

Commit 8de9fca

Browse files
committed
Replace ƒ character with circumflex accent
1 parent 1084a9b commit 8de9fca

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The characters in bold are the ones that are marked on the labels of the keys.
4545
| **`a`** | `à`, `â`, `á`, `ä`, `ã` | **`@`**, `æ`, `ª`, `` | _Left arrow_ |
4646
| **`s`** | | **`4`**, `ß`, `§`, `` | _Down arrow_ |
4747
| **`d`** | | **`5`**, ``, ``, `` | _Right arrow_ |
48-
| **`f`** | | **`6`**, `ƒ` | |
48+
| **`f`** | | **`6`**, `^` | |
4949
| **`g`** | | **`*`**, ``, `·` | |
5050
| **`h`** | | **`#`**, `²`, `` | _Left arrow_ |
5151
| **`j`** | | **`+`**, `=`, ``, ``, `±` | _Down arrow_ |

app/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ android {
2424
getDefaultProguardFile("proguard-android-optimize.txt"),
2525
"proguard-rules.pro"
2626
)
27+
signingConfig = signingConfigs.getByName("debug")
2728
}
2829
}
2930
compileOptions {

app/src/main/java/io/github/oin/titanpocketkeyboard/InputMethodService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class InputMethodService : AndroidInputMethodService() {
7272
KeyEvent.KEYCODE_A to arrayOf(MPSUBST_TOGGLE_ALT, 'æ', 'ª', '', MPSUBST_TOGGLE_SHIFT, MPSUBST_BYPASS),
7373
KeyEvent.KEYCODE_S to arrayOf(MPSUBST_TOGGLE_ALT, 'ß', '§', '', MPSUBST_TOGGLE_SHIFT, MPSUBST_BYPASS),
7474
KeyEvent.KEYCODE_D to arrayOf(MPSUBST_TOGGLE_ALT, '', '', '', MPSUBST_TOGGLE_SHIFT, MPSUBST_BYPASS),
75-
KeyEvent.KEYCODE_F to arrayOf(MPSUBST_TOGGLE_ALT, 'ƒ', MPSUBST_TOGGLE_SHIFT, MPSUBST_BYPASS),
75+
KeyEvent.KEYCODE_F to arrayOf(MPSUBST_TOGGLE_ALT, MPSUBST_CIRCUMFLEX, MPSUBST_TOGGLE_SHIFT, MPSUBST_BYPASS),
7676
KeyEvent.KEYCODE_G to arrayOf(MPSUBST_TOGGLE_ALT, '', '·', MPSUBST_TOGGLE_SHIFT, MPSUBST_BYPASS),
7777
KeyEvent.KEYCODE_H to arrayOf(MPSUBST_TOGGLE_ALT, '²', '', MPSUBST_TOGGLE_SHIFT, MPSUBST_BYPASS),
7878
KeyEvent.KEYCODE_J to arrayOf(MPSUBST_TOGGLE_ALT, '=', '', '', '±', MPSUBST_TOGGLE_SHIFT, MPSUBST_BYPASS),

app/src/main/java/io/github/oin/titanpocketkeyboard/MultipressController.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ const val MPSUBST_TOGGLE_ALT = '\uFFF5'
3434
* A special value meaning that the substitution should be a backtick character.
3535
*/
3636
const val MPSUBST_BACKTICK = '\uFFF7'
37+
/**
38+
* A special value meaning that the substitution should be a circumflex accent character.
39+
*/
40+
const val MPSUBST_CIRCUMFLEX = '\uFFF8'
3741
/**
3842
* A special value meaning that the substitution should be the string ". ".
3943
*/
@@ -112,6 +116,7 @@ class MultipressController(private val substitutions: Array<HashMap<Int, Array<C
112116
e.getUnicodeChar(mstate).toChar()
113117
}
114118
MPSUBST_BACKTICK -> '`'
119+
MPSUBST_CIRCUMFLEX -> '^'
115120
in arrayOf('`', '´', '^', '¨', '~') -> KeyEvent.getDeadChar(substitution.code, e.unicodeChar).toChar()
116121
else -> substitution
117122
}

0 commit comments

Comments
 (0)