Skip to content

Commit

Permalink
Support custom keyboard type
Browse files Browse the repository at this point in the history
  • Loading branch information
zhelenskiy committed Apr 10, 2024
1 parent 928b879 commit 7612806
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ public fun <T : Token> BasicSourceCodeTextField(
horizontalThresholdEdgeChars: Int = 5,
verticalThresholdEdgeLines: Int = 1,
innerPadding: PaddingValues = PaddingValues(0.dp),
keyboardType: KeyboardType = KeyboardType.Text,
) {
val coroutineScope = rememberCoroutineScope()
val textSize = measureText(textStyle)
Expand Down Expand Up @@ -480,7 +481,7 @@ public fun <T : Token> BasicSourceCodeTextField(
keyboardOptions = KeyboardOptions.Default.copy(
capitalization = KeyboardCapitalization.None,
autoCorrect = false,
keyboardType = KeyboardType.Ascii,
keyboardType = keyboardType,
),
cursorBrush = cursorBrush,
onTextLayout = { textLayout = it },
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ development=true

#Publication
group=com.zhelenskiy
version=0.0.11
version=0.0.12

0 comments on commit 7612806

Please sign in to comment.