Top "Keypress" questions

Occurs when a key is pressed while the control has focus.

event.keycode not returning correct values in firefox

I am trying the following code for triggering a js method when space-bar is pressed within an input box. <…

javascript jquery events keypress keycode
How to know when a user has really released a key in Java?

(Edited for clarity) I want to detect when a user presses and releases a key in Java Swing, ignoring the …

java swing keypress autorepeat keyrelease
PowerShell: Toggle "Num Lock" on and off.

I would like to be able toggle on and off the "Num Lock" key on the keyboard. I have tried …

powershell keyboard keypress
How to convert ASCII character to CGKeyCode?

I need a function that, given a character, returns the CGKeyCode associated with the position of that character on the …

c macos quartz-graphics keypress keycode
jQuery Esc Keypress bind

I'd like to add a bind in which the Esc key will slide my panel back up. Here is my …

jquery keypress
How to associate pressing "enter" with clicking button?

In my swing program I have a JTextField and a JButton. I would like for, once the user presses the "…

java swing listener keypress
Simulate TAB keypress event in Selenium RC

I need to simulate a tab keypress in Selenium RC, using the Java API. I do this after having entered …

selenium tabs selenium-rc keypress
Xamarin Android EditText enter key

I started to work with Xamarin Studio a weeks ago, and could not find solution to the next problem: created …

android key keypress xamarin enter
Receiving key press and key release events in Linux terminal applications?

I would like to write a simple C program that will perform different actions based on both "key down" and "…

linux terminal keypress ncurses tty
Differentiate between mouse and keyboard triggering onclick

I need to find a way to determine if a link has been activated via a mouse click or a …

javascript onclick mouseevent keypress