Skip to content

Commit edaf153

Browse files
authored
Fix tabbing issue with textfields (#1367)
1 parent 9290fe9 commit edaf153

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

app/src/processing/app/ui/preferences/General.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class General {
4646
modifier = Modifier.fillMaxWidth(),
4747
label = { Text(locale["preferences.sketchbook_location"]) },
4848
value = preference ?: "",
49+
singleLine = true,
4950
onValueChange = {
5051
updatePreference(it)
5152
},

app/src/processing/app/ui/preferences/Other.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ class Other {
7474
OutlinedTextField(
7575
modifier = Modifier.widthIn(max = 300.dp),
7676
value = preference ?: "",
77+
singleLine = true,
7778
onValueChange = {
7879
updatePreference(it)
7980
}

app/src/processing/app/ui/preferences/Sketches.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ class Sketches {
118118
enabled = LocalPreferences.current["run.options.memory"]?.toBoolean() ?: false,
119119
modifier = Modifier.widthIn(max = 300.dp),
120120
value = preference ?: "",
121+
singleLine = true,
121122
trailingIcon = { Text("MB") },
122123
onValueChange = {
123124
setPreference(it)

0 commit comments

Comments
 (0)