keystrokes

I can't prevent key presses from changing a selected option in Firefox

Using Firefox 3.5.7 The following test page should behave like Opera, Safari and Chrome. Key presses (arrows or 1-5) should have no effect (i.e. The events should be cancelled so that the number never changes from the initial default "3"). [I have separate working code for IE too]. Many thanks to anyone who can make it work? <html...

Recording KeyCommands in a round view like tweetie or things preferences

How would you record the keystrokes in view and set them to the NSUserdefaults because every key has a numeric value and there are also modifier keys…how would u do this Thanks ...

How do you move the pointer up or down multiple lines with Emacs?

I can move my pointer up and down one line with my arrow key just fine in Emacs, so I'd like to redefine C-n and C-p to move up and down 5 lines at a time. I'm just beginning to learn how to use Emacs, and elisp is very alien to me. I tried using the GNU Emacs lisp reference, but I couldn't find how to bind a keystroke to multiple comm...

Delphi - How can I prevent the main form capturing keystrokes in a TMemo on another non-modal form?

I have an app that opens a non-modal form from the main form. The non-modal form has a TMemo on it. The main form menu uses "space" as one of its accelerator characters. When the non-modal form is open and the memo has focus, every time I try to enter a space into the memo on the non-modal form, the main form event for the "space" sho...

Change Key in WPF KeyDown

Legacy app conversion issue. VB6 TextBox_KeyDown() allows key to be changed (e.g. force keystroke to upper case but there are many other uses). How can this be done in WPF? The only way I can see is too handle all TextBox keystrokes. In effect, reimplement TextBox editing. I'd rather not go there. ...

Disable CTRL-TAB in Flash Builder App

When a flash app is loaded in the browser, it default captures the CTRL-TAB keystroke which is needed for changes tabs in modern browsers. Any ideas on how to configure Flash Builder 4 to not listen for these keystrokes or to bubble them up to the browser? ...

C# - Console Keystrokes

I want to compare the key pressed in a console to the left arrow key if they are equal meaning the key pressed was the left arrow key, key change the background color of the console to cyan... I'm not sure how to set up the If statement though, because I dont know how to compare keys in a console. using System; namespace ConsolePaint ...

Simulate keystrokes over the internet

I'm trying to do something pretty complicated, so I've sort created this hypothetical that if answered would solve my problem: Say I was sitting in a room with two computers. Computer 1 has a game of pong that I've programmed. I would like to be able to set up a web page whereby I could log on with Computer 2, and be able to play the ...

Java tracking keystrokes with inputmap

I have this problem with my code, I'm trying to learn how to use keystrokes in Java, and i want to be able to track which keystrokes I'm pressing. I'm trying to use KeyEvent.VK_UP to track what I'm pressing. import java.awt.event.*; import javax.swing.*; public class TrackArrows { protected static InputMap inputMap; public sta...

javascript - capture input and convert characters

I want to capture input charcters in text box, convert then according to a table and put them back in text box as user types. <form id='myForm'> Enter phone number:<input type="text" id='idMyText' name="myText" onKeyUp="alphaToNum(this.value)"> </form> <script> // on each keypress in input box, I want to capture key pressed, // det...

Most common keystrokes?

Does anyone have a list of the most commonly pressed keys on an English QWERTY keyboard? ...