I know this question was asked two years ago. Since I have a solution that worked for me, I am tempted to share it with everyone.
The fix is ββpretty simple:
<input type="text" onkeydown="event.preventDefault()" readonly="readonly"/>
Event.preventDefault () will stop the backspace from moving from the page, and you can also select and copy text.
Thanks.
divya source share