keyboard

how not to allow muliple keystokes received at one key press?

when we press a key and keep pressing it the keypress and keydown event continuously fires. Is there a way to let these fire only after a complete cycle ,eg keydown and then key up. I would like the user not to be able press the key continuously rather would like the user have to press then release the key board to type a character ! ...

What is the most effective way to test for combined keyboard arrow direction in ActionScript 3.0?

I need to monitor the direction a user is indicating using the four directional arrow keys on a keyboard in ActionScript 3.0 and I want to know the most efficient and effective way to do this. I've got several ideas of how to do it, and I'm not sure which would be best. I've found that when tracking Keyboard.KEY_DOWN events, the event r...

How to properly implement cheat codes?

Hi, what would be the best way to implement kind of cheat codes in general? I have WinForms application in mind, where a cheat code would unlock an easter egg, but the implementation details are not relevant. The best approach that comes to my mind is to keep index for each code - let's consider famous DOOM codes - IDDQD and IDKFA, in a...

How can I add a JavaScript keyboard shortcut to an existing JavaScript Function?

Here is my code: function pauseSound() { var pauseSound=document.getElementById("backgroundMusic"); pauseSound.pause(); } I would like to add a keyboard shortcut to this code, how can I do this so that the function can also be executed when a button is clicked too? Tried to add an else-if statment but it doesn't work, any id...

iphone keyboard won't appear

I can click on the field, and it momentarily turns blue, but those events plus makeFirstResponder together do not cause the keyboard to show on a UITextField. Plain vanilla code follows; I include it so others can discern what is NOT there and therefore what, presumably, with solve the problem. I put in leading spaces to format this qu...

Keyboard Animation Issues When Calling becomeFirstResponder within a Modal View Controller

I've been having some issues with calling -becomeFirstResponder on a UITextField contained with a view controller that is presented modally. I call this method in the modal view controller's -viewDidLoad method so that the keyboard is immediately displayed. What I expected is for both the keyboard and the modal view controller to animate...

Convert sequence of System.Windows.Forms.Keys to a Char

Is there a way to convert a sequence of keystrokes represented by the Keys enum (i.e. System.Windows.Forms.Keys) in a Char. For example: Keys.Oem4 and then Keys.A yields the char á. It must exist somewhere in the WinAPI, because Windows does that for me, when I press keys inside a text-box... I just don't know where. Please help! thanks....

Is it possible to programmatically set the state of the shift and control keys?

The reason I am asking is that I am thinking of building a foot switch to act as shift and control keys - well two switches, one for each foot. I'm planning on using the Arduino for this and writing a small C# application to detect when the switch has been pressed that would then set the state of shift or control. I would rather not hav...

Is it possible to make the iPhone keyboard invisible / remove it without resigning first responder?

I am looking for a way to show my own input view (a UITableView) to enter certain keywords in a UITextView faster than typing them, and also be able to type into this text view the normal way. My solution has a button that causes the keyboard to disappear, revealing the table view underneath it. Problem is I can't figure out how to make...

Why does this only work sometimes? (UITextView resign first responder question)

When a user presses the "SEND"(return) button I want the keyboard to retract and do other stuff like send a message. But it only works SOMETIMES... Why does this code only work SOMETIMES? I need it to work all the time obviously, but it doesn't. - (void)textViewDidChange:(UITextView *)inTextView { NSString *text = myTextView.text;...

iPhone nextResponder switching keyboards

iPhone SDK 3.2 Beta 4 (I am downloading B5 to see if this clears this up) To me this seems like a bug, but maybe I am missing something. The linked test program illustrates this problem. I have several UITextFields that I am linking together using the Tag property. In textFieldShouldReturn I get the next UITextField and set it as the a...

c# capture Ctrl+PageUp keystroke

Hello, I am having trouble capturing Ctrl+PageUp keystroke in a ListView control in WinForms application. I am using this code to capture keystrokes - private void ListViewEx_KeyDown(object sender, KeyEventArgs e) { ... if(e.Control){ if((e.KeyCode ^ Keys.Left) == 0) MessageBox.Show("Left"); //shows messagebox else if((e.KeyCode...

Trouble with onscreen keyboard orientation in iPhone OpenGL ES application.

I need to take keyboard input in my OpenGL ES application, so I just created a hidden UITextField and added it as a subview to the main window along with the view that presents my content. I use the UITextField to control the keyboard and it works fine in a single orientation. I then changed my code to support all orientations by rotati...

UITextField keyboard difference between simulator and real device

Hi, I am trying get float value with UITextField. On the simulator V3.1.3 in English, I have to use '.' to separate my float values. But on my Iphone 3GS V3.1.3 in French, I have to use ',' to separate them. If I use '.' on my Iphone 3GS, my float is troncated : 3.22222 => 3.0000000 Is there a solution to detect the language version and...

My delete key won't work in Eclipse in OS X.

My delete key isn't working in Eclipse in OS X. However, Shift-Delete deletes. Delete works elsewhere, so a setting must have been unwittingly changed. Any idea what it is or how to fix it? Restarting Eclipse didn't help. ...

Convert keyboard layout from AZERTY to QWERTY

I'm programming in Java using a French machine with an AZERTY keybord. I like to type text with a certain character, the colon, test: hello. When I launch the test, only test is displayed. Are there ways in Java to convert the colon : to the QWERTY equivalent? ...

Override default behavior of SPACE key in .net WinForms ListView

Hello, I'd like to implement some custom behavior of Space key in a ListView. Basically I'd like to toggle selected status of the item under cursor - that should be fairly simple this.FocusedItem.Selected = !this.FocusedItem.Selected; but alas, it also does the default action, which is to select the focused item. This way I am unable...

On-screen keyboard not appearing when editing text fields in a UIWebView

I have a web view which displays a simple login form, containing username and password fields. However when the user clicks in one of the text fields, although the cursor appears in the text field, the on-screen keyboard does not appear. I've tried registering for UIKeyboardWillShowNotifications notifications and I see this notificatio...

iPad custom Keyboard GUI

Hi, I want to create custom GUI for keyboard layout instead of normal layout. How can I achieve this? Can anyone help me ? Is there any built-in style/layout available or do I need to create a view for same? Thanks, Jayesh ...

Android - Adjust screen when keyboard pops up?

I want to be able to adjust my UI screen on Android when the soft keyboard pops up. So at the minute I have something similiar to the first picture below where I have and EditText at the bottom of the screen and when a user taps the EditText I want the same as what happens in the second picture. That is that the EditText gets moved up ...