@@ -22,6 +22,7 @@ import androidx.compose.runtime.setValue
2222import androidx.compose.ui.Alignment
2323import androidx.compose.ui.Modifier
2424import androidx.compose.ui.draw.clip
25+ import androidx.compose.ui.focus.onFocusChanged
2526import androidx.compose.ui.graphics.Color
2627import androidx.compose.ui.platform.testTag
2728import androidx.compose.ui.res.painterResource
@@ -114,7 +115,9 @@ fun CalculatorCardContent(
114115
115116 // Bitcoin input with visual transformation
116117 CalculatorInput (
117- modifier = Modifier .fillMaxWidth(),
118+ modifier = Modifier
119+ .fillMaxWidth()
120+ .onFocusChanged { focusState -> if (focusState.hasFocus) onBtcChange(" " ) },
118121 value = btcValue,
119122 onValueChange = onBtcChange,
120123 currencySymbol = BITCOIN_SYMBOL ,
@@ -126,7 +129,9 @@ fun CalculatorCardContent(
126129
127130 // Fiat input with decimal transformation
128131 CalculatorInput (
129- modifier = Modifier .fillMaxWidth(),
132+ modifier = Modifier
133+ .fillMaxWidth()
134+ .onFocusChanged { focusState -> if (focusState.hasFocus) onFiatChange(" " ) },
130135 value = fiatValue,
131136 onValueChange = onFiatChange,
132137 currencySymbol = fiatSymbol,
0 commit comments