Questions tagged [backspace]

The backspace key on the keyboard (deletes the previous character)

354 questions
2
votes
1 answer

How can i use printf("\b") to make my console output look like typewriter?

I am using a loop to delete characters from a string using printf(\b) 1 by 1 and sleep 0.1 seconds in between. But when I run the code it happens simultaneously. I literally tried typing each printf because I thought the loop might be the cause but…
2
votes
2 answers

Reading and printing one char at a time - getche() and backspace in Python

I want to create typing training program. I need a function which immediately both reads and prints each character user hits - something like getche() I have tried using getche from this module but it doesn't deal well with backspaces. When I hit…
user3565923
  • 153
  • 2
  • 12
2
votes
1 answer

Backspace Button In JavaFX

I am making a calculator project using JavaFX. In my calculator, I had a backspace button. I tried the old way, something like this: strBuild.deleteCharAt(display.getText().length()-1); But that didn't work, possibly and probably because of the…
2
votes
0 answers

Ignoring arrow keys when using the select menu with readline

I have written a bash script that looks like this which basically handles user operation based on selection. PS3='Please enter current status of the completion: ' boolean_status=("completed" "not-yet") select opt in "${boolean_status[@]}" …
KNDheeraj
  • 834
  • 8
  • 23
2
votes
1 answer

How to handle backspace with libphonenumber AsYouTypeFormatter

I'm trying to use google-libphonenumber's AsYouTypeFormatter with a simple input element on a web form. I pass each key typed by the user to the inputDigit method. The problem I'm running into is that when the user hits backspace,…
2
votes
1 answer

Firefox switching tab on backspace

As Firefox users will know, when pressing the backspace button without selecting an input field will make you return to the previous tab. Problem is, I have made an input field based on document.onkeydown(data){k=(data.key)} data. Users do not have…
JScoder
  • 25
  • 5
2
votes
1 answer

backspace behaviour changed to ^H in bash shell after sometime

My backspace is deleting letter backward as expected in my bash shell after logon. But for unknown reason, occasionally, after a while of use, it instead outputs ^H. This is annoying. I have to log off/on again to correct its behaviour. Do you know…
Sheen
  • 3,333
  • 5
  • 26
  • 46
2
votes
3 answers

AngularJS way to disable a key

In my AngularJs project I want to disable the backspace key for all views. Here is an easy jQuery solution. Is there any solution for this written in AngularJs? $(document).on("keydown", function (e) { if (e.which === 8 &&…
2
votes
4 answers

Outlook add in , text box , delete\backspace not working

I developed an outlook add in (custom task pane), with web browser in the user control. All the things working well beside the backspace or the delete button when I am writing something in text box in the web browser, I can't use those keys, am I…
Tom
  • 63
  • 1
  • 7
2
votes
3 answers

javascript substring like backspace

HI in the code down below i have a html setup with buttons for a password input form: Log in form
Kamil
  • 53
  • 7
2
votes
2 answers

KeyPressed BACKSPACE and delete just one shape

I've create a code for a "generative" logo {Like this http://ebologna.it/ } (it's at the start so is not complete), and I want that while pressing one time the BACKSPACE I can go back just for one shape. Now like I have my code, when I press…
Carol
  • 23
  • 4
2
votes
2 answers

Deleting a char on the screen

I am making a game in assembly using EMU8086 for a project in school. In this game I need to allow the user to enter a string in order to progress. While he enters the string he might type something incorrectly and use the backspace to correct it.…
2
votes
1 answer

Print, delay and erase current line in C

I want to print the seconds elapsed in real time since the program began. First the output is "0". After one second, the "0" is replaced by "1", and so on. Here is the code I wrote initially. #include #include void main () { long…
Fauzan
  • 252
  • 4
  • 10
2
votes
1 answer

JavaFX8 KeyEvent - Trigger Backspace Key on a TextField

I'm trying to trigger backspace key on virtual keyboard for touch based system. this is my code which I tried so far. Button source = new Button("Backspace"); TextField target = new TextField(); KeyEvent ke = new KeyEvent(source, target,…
Hiran
  • 287
  • 4
  • 19
2
votes
2 answers

How do I capture the backspace key in IE8 with jquery?

I've got a simple javascript keydown event coded via jquery. The event should just alert the key that is "down." This works for most keys but not the backspace key in Internet Explorer. I read that IE messes this up on the keypress event but was…
Justin808
  • 20,859
  • 46
  • 160
  • 265