Auto-commit after successful build: update app gameplay/UI
Changed files:\napp/src/main/java/com/kawomi/githugandroid/GitHugApp.kt
This commit is contained in:
@@ -153,6 +153,8 @@ fun GitHugApp() {
|
||||
val raw = commandInput.text.trim()
|
||||
if (raw.isBlank()) return
|
||||
|
||||
commandInput = TextFieldValue("")
|
||||
|
||||
if (commandHistory.lastOrNull() != raw) {
|
||||
commandHistory = commandHistory + raw
|
||||
}
|
||||
@@ -189,7 +191,6 @@ fun GitHugApp() {
|
||||
} else {
|
||||
repo = newRepo
|
||||
output = newOutput
|
||||
commandInput = TextFieldValue("")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -421,7 +422,7 @@ private fun SpecialKeyBar(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
horizontalArrangement = Arrangement.spacedBy(8.dp)
|
||||
) {
|
||||
TerminalKeyButton(label = "TAB", onClick = onTab, modifier = Modifier.weight(1.3f))
|
||||
TerminalKeyButton(label = "⇥", onClick = onTab, modifier = Modifier.weight(1.3f))
|
||||
TerminalKeyButton(label = "←", onClick = onCursorLeft)
|
||||
TerminalKeyButton(label = "→", onClick = onCursorRight)
|
||||
TerminalKeyButton(label = "↑", onClick = onHistoryUp)
|
||||
|
||||
Reference in New Issue
Block a user