Skip to content

Commit

Permalink
Improve Hungarian Type-split layout (#770)
Browse files Browse the repository at this point in the history
  • Loading branch information
KnockoffFeline committed Feb 27, 2024
1 parent 1aef819 commit 2e835d0
Showing 1 changed file with 26 additions and 14 deletions.
40 changes: 26 additions & 14 deletions app/src/main/java/com/dessalines/thumbkey/keyboards/HUTypeSplit.kt
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,19 @@ val KB_HU_TYPESPLIT_MAIN =
size = FontSizeVariant.LARGE,
color = ColorVariant.PRIMARY,
),
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
swipeType = SwipeNWay.FOUR_WAY_CROSS,
swipes =
mapOf(
SwipeDirection.LEFT to
KeyC(
display = null,
action = KeyAction.CommitText("j"),
),
SwipeDirection.RIGHT to
KeyC(
display = KeyDisplay.TextDisplay("j"),
action = KeyAction.CommitText("j"),
),
SwipeDirection.BOTTOM to
KeyC(
display = KeyDisplay.TextDisplay("g"),
Expand All @@ -195,9 +205,10 @@ val KB_HU_TYPESPLIT_MAIN =
size = FontSizeVariant.LARGE,
color = ColorVariant.PRIMARY,
),
swipeType = SwipeNWay.FOUR_WAY_CROSS,
swipes =
mapOf(
SwipeDirection.TOP_LEFT to
SwipeDirection.LEFT to
KeyC(
display = KeyDisplay.TextDisplay("é"),
action = KeyAction.CommitText("é"),
Expand All @@ -212,11 +223,6 @@ val KB_HU_TYPESPLIT_MAIN =
display = KeyDisplay.TextDisplay("ű"),
action = KeyAction.CommitText("ű"),
),
SwipeDirection.LEFT to
KeyC(
display = KeyDisplay.TextDisplay("j"),
action = KeyAction.CommitText("j"),
),
SwipeDirection.BOTTOM to
KeyC(
display = KeyDisplay.TextDisplay("k"),
Expand Down Expand Up @@ -493,9 +499,19 @@ val KB_HU_TYPESPLIT_SHIFTED =
size = FontSizeVariant.LARGE,
color = ColorVariant.PRIMARY,
),
swipeType = SwipeNWay.TWO_WAY_VERTICAL,
swipeType = SwipeNWay.FOUR_WAY_CROSS,
swipes =
mapOf(
SwipeDirection.RIGHT to
KeyC(
display = KeyDisplay.TextDisplay("J"),
action = KeyAction.CommitText("J"),
),
SwipeDirection.LEFT to
KeyC(
display = null,
action = KeyAction.CommitText("J"),
),
SwipeDirection.BOTTOM to
KeyC(
display = KeyDisplay.TextDisplay("G"),
Expand All @@ -511,9 +527,10 @@ val KB_HU_TYPESPLIT_SHIFTED =
size = FontSizeVariant.LARGE,
color = ColorVariant.PRIMARY,
),
swipeType = SwipeNWay.FOUR_WAY_CROSS,
swipes =
mapOf(
SwipeDirection.TOP_LEFT to
SwipeDirection.LEFT to
KeyC(
display = KeyDisplay.TextDisplay("É"),
action = KeyAction.CommitText("É"),
Expand All @@ -528,11 +545,6 @@ val KB_HU_TYPESPLIT_SHIFTED =
display = KeyDisplay.TextDisplay("Ű"),
action = KeyAction.CommitText("Ű"),
),
SwipeDirection.LEFT to
KeyC(
display = KeyDisplay.TextDisplay("J"),
action = KeyAction.CommitText("J"),
),
SwipeDirection.BOTTOM to
KeyC(
display = KeyDisplay.TextDisplay("K"),
Expand Down

0 comments on commit 2e835d0

Please sign in to comment.