title: How can i send :Backspace to an element with Capybara and Poltergeist without it triggering the browser to navigate back one page?
body: <p>I am trying to test a HTML editor in a Cucumber scenario, and I need to simulate the user pressing backspace. The code I am using is below, but it causes the browser to navigate back instead of delete a character. </p>
  
  <p>How can I focus on the editor area so that the keypress does not do this?</p>
  
  <pre><code>  page.execute_script "$('.redactor-editor').first().focus();"
    all('.redactor-editor')[0].native.send_key(:Backspace)
  </code></pre>