Skip to content

Debloat your Android TV, install apps, browse and transfer files on it, all from your phone. Just 3 MB, no tracking, no root, no PC.

Remote: the backspace leaves the unsent draft alone

jesse-agent-82127dc614104e9
diff --git a/app/src/main/java/app/tellyscope/ui/RemoteScreen.kt b/app/src/main/java/app/tellyscope/ui/RemoteScreen.kt
index cf5956a..2740ff2 100644
--- a/app/src/main/java/app/tellyscope/ui/RemoteScreen.kt
+++ b/app/src/main/java/app/tellyscope/ui/RemoteScreen.kt
@@ -391,11 +391,10 @@ private fun Keyboard(enabled: Boolean, type: (String) -> String?, press: suspend
keyboardActions = KeyboardActions(onSend = { send() }),
trailingIcon = {
Row {
- // A key, not a button: holding it repeats like the D-pad. Each Delete also takes the
- // last character off the phone's field.
+ // A key, not a button: holding it repeats like the D-pad. It deletes on the TV only;
+ // the field above is the unsent draft, which the phone's keyboard edits.
KeySurface(
- RemoteKey.DEL, Copy.BACKSPACE, enabled,
- { key -> text = text.dropLast(1); error = null; press(key) },
+ RemoteKey.DEL, Copy.BACKSPACE, enabled, press,
CircleShape, Color.Transparent, Modifier.size(48.dp),
) { Icon(RemoteIcons.Backspace, null, tint = LocalContentColor.current.copy(alpha = if (enabled) 1f else 0.38f)) }
IconButton(onClick = ::send, enabled = enabled && text.isNotEmpty()) {