mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Add back PC symbols to default number row when shifted
This commit is contained in:
parent
727db278ca
commit
fe1b99d896
@ -413,6 +413,11 @@ data class CaseSelector(
|
|||||||
*/
|
*/
|
||||||
val shifted: Key = normal,
|
val shifted: Key = normal,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Key to use when shifted, excluding automatic shift
|
||||||
|
*/
|
||||||
|
val shiftedManually: Key = shifted,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Key to use when shift locked (caps lock), defaults to [shifted]
|
* Key to use when shift locked (caps lock), defaults to [shifted]
|
||||||
*/
|
*/
|
||||||
@ -434,9 +439,8 @@ data class CaseSelector(
|
|||||||
when(elementId) {
|
when(elementId) {
|
||||||
KeyboardId.ELEMENT_ALPHABET -> normal
|
KeyboardId.ELEMENT_ALPHABET -> normal
|
||||||
|
|
||||||
// KeyboardState.kt currently doesn't distinguish between these
|
KeyboardId.ELEMENT_ALPHABET_AUTOMATIC_SHIFTED -> shifted
|
||||||
KeyboardId.ELEMENT_ALPHABET_AUTOMATIC_SHIFTED,
|
KeyboardId.ELEMENT_ALPHABET_MANUAL_SHIFTED -> shiftedManually
|
||||||
KeyboardId.ELEMENT_ALPHABET_MANUAL_SHIFTED -> shifted
|
|
||||||
|
|
||||||
// KeyboardState.kt currently doesn't distinguish between these
|
// KeyboardState.kt currently doesn't distinguish between these
|
||||||
KeyboardId.ELEMENT_ALPHABET_SHIFT_LOCKED,
|
KeyboardId.ELEMENT_ALPHABET_SHIFT_LOCKED,
|
||||||
|
@ -107,7 +107,12 @@ data class Row(
|
|||||||
}
|
}
|
||||||
|
|
||||||
val DefaultNumberRow = Row(
|
val DefaultNumberRow = Row(
|
||||||
numbers = "1234567890".map { BaseKey(it.toString()) }
|
numbers = "1234567890".mapIndexed { i, c ->
|
||||||
|
CaseSelector(
|
||||||
|
normal = BaseKey(c.toString()),
|
||||||
|
shiftedManually = BaseKey("!@#$%^&*()"[i].toString())
|
||||||
|
)
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
val DefaultBottomRow = Row(
|
val DefaultBottomRow = Row(
|
||||||
|
Loading…
Reference in New Issue
Block a user