python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How do I stop a while loop when ANY keystroke is registered in c#
I've been searching around for an answer but all I can find are solutions for if a user inputs a specific key. I want ANY key that is pressed to halt the repeating message in the loop. So if no key is...
jimothee-stewart
Votes: 0
Answers: 2
How to detect a keypress event inside a function? Nodejs
How can a keypress be detected only inside a function and not on all code?
I have this code:
async function sellFunction() {
let i = 0;
let handle = setInterval(function() {
logUpdate...
skzao
Votes: 0
Answers: 0
Javascript: loop until CTRL+C is pressed
How can I make a snippet of code loops until CTRL+C is pressed?
I saw from this thread that the indicated snippet of code loops until key a is pressed.
How to make it loop until CTRL+C is pressed ?
Tms91
Votes: 0
Answers: 1
Detect Escape on keyPress
I want to detect Escape on a field in C# to add '_'. I tested e.KeyCode == Keys.Escape, but it's not working. Have you an idea?
private void tbxLibelle_KeyPress(object sender, KeyPressEventArgs e)
{ ...
Jules
Votes: 0
Answers: 1