title: How to disable backspace behaviour in EditText Android?
body: <p>For example I have following string in EditText:</p>
  
  <blockquote>
    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat</p>
  </blockquote>
  
  <p>The normal behaviour is, when user long press on backspace button in virtual keyboard, the system will delete each word directly, for example:</p>
  
  <blockquote>
    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat</p>
  </blockquote>
  
  <p>becomes</p>
  
  <blockquote>
    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat</p>
  </blockquote>
  
  <p>Can I prevent such behaviour to happen in my app?</p>
  
  <p>I have tried to observe <code>onKeyDown</code>, <code>onKeyUp</code>, <code>onKeyLongPress</code> and <code>onTextChanged</code>, <code>afterTextChanged</code>, <code>beforeTextChanged</code>, but doesn't find something that I can use to prevent such behaviour.</p>