The backspace key on the keyboard (deletes the previous character)
Questions tagged [backspace]
354 questions
9
votes
9 answers
How to disable backspace if anything other than input field is focused on using jquery
How do I disable backspace keystroke if anything other than 2 specific input fields are focused on using jquery?
here is my current code (NOW INCLUDING 2 TEXTBOXES):
$(document).keypress(function(e){
var elid =…

sadmicrowave
- 39,964
- 34
- 108
- 180
8
votes
3 answers
Backspace icon/representation
Is there a Unicode character for the backspace icon (as seen on some keyboards and on the Windows Phone soft keyboard)

David Gardiner
- 16,892
- 20
- 80
- 117
8
votes
4 answers
'\b' doesn't print backspace in PyCharm console
I am trying to update the last line in PyCharm's console. Say, I print a and then I want to change it to c. However, I encounter the following problem. When I run:
print 'a\bc'
it prints
a c
while the desired output (which is also what I see in…

Yariv
- 12,945
- 19
- 54
- 75
8
votes
1 answer
sublime text 3 ctrl backspace doesn't work
sublime text 3 Ctrl+Backspace doesn't work
my sublime keymap like this but but still does not work
{ "keys": ["ctrl+backspace"], "command": "delete_word", "args": { "forward": false } },

jebii
- 81
- 2
8
votes
1 answer
Can't get backspace to work in codemirror, under Phonegap on Android 4.x?
I need a web-based text/code editor that behaves well, for my App.
I'm trying to use codemirror under Phonegap and currently I'm having problems getting backspace to work for previously entered text. This is a huge problem for my use case. Now I've…

Nisk
- 540
- 6
- 27
7
votes
2 answers
Jshell crashes when i press BackSpace button in windows cmd
when I open windows cmd and type jshell , it works, but when I'm writing something . whenever I press the BackSpace key . for example if I want to delete a letter that is wrong . jshell crashes with bellow error , i'm using windows 10 , and…

Geco
- 177
- 1
- 17
7
votes
2 answers
Bash read backspace button behavior problem
When using read in bash, pressing backspace does not delete the last character entered, but appears to append a backspace to the input buffer. Is there any way I can change it so that delete removes the last key typed from the input? If so…

Ultimate Gobblement
- 1,851
- 16
- 23
7
votes
4 answers
Prevent backspace from navigating back in AngularJS
I faced this issue in my AngularJS webapp.
When a user enters a page with a form to fill and he starts typing, if he presses the backspace key and the focus is not on the input text, then the page goes to the previous state.
I looked up this…

gyss
- 1,753
- 4
- 23
- 31
7
votes
1 answer
Backspace to beginning of line in IntelliJ
Pretty much everywhere in OSX, it's possible to backspace all the way to the beginning of a line using command+Backward delete. I can't find a way to set up this behaviour within IntelliJ IDEA, and I find this very...
...backward.

eye_mew
- 8,855
- 7
- 30
- 50
7
votes
3 answers
Backspace to delete whole word (entity) instead of each letter/character
In my app, I have an edittext which will contain a user (brought from db).
There is the possibility that more than a user be present inside the edittext in the following manner : UserX, UserY, UserZ
I want to make the backspace of the virtual…

tony9099
- 4,567
- 9
- 44
- 73
7
votes
3 answers
Android Editext having issue with backspace key
I have an AlertDialog in which I am setting a XML as its view. In that xml layout I have an EditText. But after entering data in EditText, if I am trying to delete using backspace, the characters are not getting deleted (its like backspace is not…

Android Killer
- 18,174
- 13
- 67
- 90
7
votes
3 answers
cocoa: menu bar item with backspace as key equivalent
I would like to set the key equivalent of a menu bar item in IB to the backspace key (delete left of the cursor), but for some reason this doesn't seem to work. I can assign all kinds of keys to it, such as CMD+Backspace, or fn+Backspace (delete…

mtmurdock
- 12,756
- 21
- 65
- 108
6
votes
2 answers
Why the '\b' at the end of the string doesn't have effect?
Here is the code below:
#include
int main(int argc, char* argv[])
{
printf("WORD\b\b WORD\b\b");
return 0;
}
which generates this output:
WO WORD
The question is why the last \b does not have effect on the second word more…

Meninx - メネンックス
- 6,331
- 16
- 30
6
votes
4 answers
Windows Safari 5 bug when using backspace in a Flash web application
I have noticed this bug when developing my flash application on a windows platform. If typing text in to a text box in a Flash swf running in Safari 5 browser on Windows then press backspace the browser will jump to the previous page in history…

undefined
- 5,190
- 11
- 56
- 90
6
votes
3 answers
jquery select dropdown ignores keydown event when it's opened?
I'm trying to prevent backspace button to go one page back in every browser. For now I'm using this code:
$(document).on("keydown", function (e) {
if (e.which === 8 && !$(e.target).is("input, textarea")) {
e.preventDefault();
…

Silko
- 584
- 1
- 8
- 26