Skip to content

Commit

Permalink
Merge branch 'domportera-main'
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines committed Apr 17, 2023
2 parents 29324f2 + 09cc34a commit c639d96
Show file tree
Hide file tree
Showing 4 changed files with 749 additions and 1 deletion.
50 changes: 50 additions & 0 deletions app/src/main/java/com/dessalines/thumbkey/keyboards/CommonKeys.kt
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,38 @@ val BACKSPACE_KEY_ITEM =
SwipeDirection.BOTTOM_LEFT to KeyC(
action = KeyAction.DeleteLastWord,
display = null
),
SwipeDirection.RIGHT to KeyC(
action = KeyAction.SendEvent(
KeyEvent(
KeyEvent.ACTION_DOWN,
KeyEvent
.KEYCODE_FORWARD_DEL
)
),
display = null,
color = ColorVariant.MUTED,
size = FontSizeVariant.SMALLEST
),
SwipeDirection.TOP_RIGHT to KeyC(
action = KeyAction.SendEvent(
KeyEvent(
KeyEvent.ACTION_DOWN,
KeyEvent
.KEYCODE_FORWARD_DEL
)
),
display = null
),
SwipeDirection.BOTTOM_RIGHT to KeyC(
action = KeyAction.SendEvent(
KeyEvent(
KeyEvent.ACTION_DOWN,
KeyEvent
.KEYCODE_FORWARD_DEL
)
),
display = null
)
),
backgroundColor = ColorVariant.SURFACE_VARIANT
Expand Down Expand Up @@ -111,6 +143,24 @@ val SPACEBAR_KEY_ITEM =
)
),
display = null
),
SwipeDirection.TOP to KeyC(
action = KeyAction.SendEvent(
KeyEvent(
KeyEvent.ACTION_DOWN,
KeyEvent.KEYCODE_DPAD_UP
)
),
display = null
),
SwipeDirection.BOTTOM to KeyC(
action = KeyAction.SendEvent(
KeyEvent(
KeyEvent.ACTION_DOWN,
KeyEvent.KEYCODE_DPAD_DOWN
)
),
display = null
)
),
nextTapActions = arrayOf(
Expand Down
Loading

0 comments on commit c639d96

Please sign in to comment.