The backspace key on the keyboard (deletes the previous character)
Questions tagged [backspace]
354 questions
6
votes
2 answers
How do you disable a DataGridView's keyboard shorcuts?
I've just noticed that DataGridViews have a default shortcut so that whenever you press Ctrl + H, the DataGridView's editing control backspaces, and can delete your entire selection within the cell.
This can get quite annoying since I want to open…

User2400
- 2,373
- 2
- 20
- 22
6
votes
8 answers
How to prevent a backspace key stroke in a TextBox?
I want to suppress a key stroke in a TextBox. To suppress all keystrokes other than Backspace, I use the following:
private void KeyBox_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
{
e.Handled = true;
}
However, I…

msbg
- 4,852
- 11
- 44
- 73
6
votes
4 answers
How to detect that a space was backspaced or deleted
I need to find a way to detect if a space was deleted or backspaced, and run a function if that is the case. I am working on this in JavaScript / jQuery.
I know I can get the delete or backspace key press by using:
$(this).keyup(function(event) {
…

Baxter
- 5,633
- 24
- 69
- 105
5
votes
2 answers
Override the default behavior of Backspace in AutoCompleteTextView
I'm using a AutoCompleteTextView, the default behavior of the backspace button goes something like this.
Say i type "Ar", this gives me a suggestion "Argentina", i select "Argentina" from the drop down...The Text now becomes "Argentina ". But say i…

st0le
- 33,375
- 8
- 89
- 89
5
votes
3 answers
^H ^? in python
Some terminals will send ^? as backspace, some other terminals will send ^H.
Most of the terminals can be configured to change their behavior.
I do not want to deal with all the possible combinations but I would like to accept both ^? and ^H as a…

Jekyll
- 1,434
- 11
- 13
5
votes
1 answer
Catching Backspace on Chrome & Firefox is Different
I am trying to make a console like application, so I am catching all the keypress on the window and do related stuff with them(not important). Problem is at backspace. I have the following code:
$(window).bind("keypress",function(e){
var…

Mustafa
- 10,013
- 10
- 70
- 116
5
votes
3 answers
Backspacing in Bash
How do you backspace the line you just wrote with bash and put a new one over its spot? I know it's possible, Aptitude (apt-get) use it for some of the updating stuff and it looks great.

Kyle Hotchkiss
- 10,754
- 20
- 56
- 82
5
votes
3 answers
Ignore backspace key from stdin
I want to make a program that forces it's user to input text but doesn't allow him to erase any of it, what's a simple way of doing it in C?
The only thing I've got is (c = getchar()) != EOF && c != '\b' which doesn't work. Any ideas?

Iceland_jack
- 6,848
- 7
- 37
- 46
5
votes
0 answers
Unable to backspace in input type="number" using Chrome 64bit in Ubuntu 14.04. Works in Firefox
I am trying to use the code below posted by Biff MaGriff for an earlier solution to preventing backspace use that causes the browser to go back a page in history. My issue is that the code will not allow backspace (deletion) of characters in…

nwolybug
- 462
- 5
- 12
5
votes
3 answers
How to insert a back space after the end of string
Is it possible to insert a backspace after a string.If possible then
How to insert a back space in a string??

Naveen
- 111
- 1
- 2
- 8
5
votes
7 answers
how to get which character is get deleted on backspace in android
I am working with android 2.2.
How to know which character is get deleted on backspace when editing text in custom auto complete in android.
public boolean onKeyUp(int keyCode,KeyEvent msg){
if(keyCode == KeyEvent.KEYCODE_DEL)
{
…

Smily
- 2,646
- 4
- 23
- 31
5
votes
3 answers
How to block editing on certain part of content in CKEDITOR textarea?
I have my CKEDITOR form prepopulated with hidden table which is being submitted together with user inputed text. This works fine, but sometimes user presses backspace too many times and deletes the hidden table.
Is there a way to block editing on…

Mantas
- 169
- 1
- 4
- 12
4
votes
1 answer
Windows version of rxvt Backspace key doesn't work as expected
I'm using rxvt.exe, the alternative to bash.exe that comes with msysgit. My OS is WinXP.
I invoke the console with "C:\Program Files\Git\bin\rxvt.exe" -e /usr/bin/bash --login -i
The backspace key deletes everything backward to the beginning of the…

jilbot
- 145
- 3
- 9
4
votes
1 answer
Iterm2 alt + backspace Like Linux
I changed my job and now I have a Macbook for working I configured Iterm2 with zsh and almost everything is working, but certain shortcuts aren't, one of the most used by me every day "alt+backspace" to delete a word before a special character…

user2275908
- 137
- 2
- 9
4
votes
2 answers
Python strings: backspace at the end of string behaves differently
I'm experimenting with the backspace character \b in Python strings. I tried this:
>>> s = "The dog\b barks"
>>> print(s)
The do barks
This behaves as expected. The g character disappears because of the \b backspace.
Now I try this:
>>> s = "The…

K.Mulier
- 8,069
- 15
- 79
- 141