dev #560

Merged
ysCha merged 7 commits from dev into dev-deploy 2026-01-08 15:18:56 +09:00
Showing only changes of commit a258f61093 - Show all commits

View File

@ -340,12 +340,18 @@ export const CalculatorInput = forwardRef(
// Tab
if (e.key === 'Tab') {
if (hasOperation) {
handleCompute(true) //
}
setShowKeypad(false)
return
}
//
if (e.key === 'ArrowLeft' || e.key === 'ArrowRight' || e.key === 'ArrowUp' || e.key === 'ArrowDown') {
if (hasOperation) {
handleCompute(true) //
}
setShowKeypad(true)
return
}
@ -360,6 +366,12 @@ export const CalculatorInput = forwardRef(
return
}
// --- ---
if (e.key !== 'Process') { // ()
// e.preventDefault() .
}
e.preventDefault()
const calculator = calculatorRef.current
const { allowDecimal } = options