But just immediately before the code you add there's code for "else if (c == 127)" which does the same (except more correctly, via API calls). It should be pretty clear that correct fix is changing line 89 to " } else if (c == 127 || c == 8) {".