diff --git a/components/lib/inputnumber/InputNumber.js b/components/lib/inputnumber/InputNumber.js index 53546e2872..504c98ea5c 100644 --- a/components/lib/inputnumber/InputNumber.js +++ b/components/lib/inputnumber/InputNumber.js @@ -316,6 +316,10 @@ export const InputNumber = React.memo( } isSpecialChar.current = false; + + if (!DomHandler.isAndroid()) { + return; + } }; const onInputKeyDown = (event) => { @@ -323,7 +327,7 @@ export const InputNumber = React.memo( return; } - if (event.shiftKey || event.altKey || event.ctrlKey || event.metaKey) { + if (event.altKey || event.ctrlKey || event.metaKey) { isSpecialChar.current = true; return; @@ -340,6 +344,11 @@ export const InputNumber = React.memo( lastValue.current = event.target.value; + // Android is handled specially in onInput + if (DomHandler.isAndroid()) { + return; + } + let selectionStart = event.target.selectionStart; let selectionEnd = event.target.selectionEnd; let inputValue = event.target.value; @@ -430,7 +439,6 @@ export const InputNumber = React.memo( newValueStr = deleteRange(inputValue, selectionStart, selectionEnd); updateValue(event, newValueStr, null, 'delete-range'); } - break; // del