keyboard

how do we keep the keyboard rather than dismissing it using UITextField textFieldShouldReturn?

I want to keep my keyboard up after I input something since I am gathering up multiple answers for one question. So far I am calling: - (BOOL)textFieldShouldReturn:(UITextField*)textField { [textField resignFirstResponder]; return YES; } But when remove resignFirstResponder, I am not getting any response for my input handler on t...

How to associate an action to a keyboard shortcut?

Hi all, I've an IBAction that calls up a panel. I want to invoke that action with a keyboard shortcut but I'm at a loss on how to do it. I guess one way of doing it would be to create a menu item, associate the action to the item and then assign the shortcut to that item, but I haven't done my menus yet. Any ideas or suggestions? ...

Windows 7 touchscreen keyboard in a WPF app

I'm building a .NET 3.5 sp1 WPF app for use on Windows 7 - is there a way to place the touchscreen keyboard in my application? NOTE: In contrast to other similar questions I'm not looking to embed the keyboard in my app, I just want to start the keyboard and use it for text entry. ...

Add application-specific dictionary to iPhone keyboard word completion functionality?

In my iPhone application I want the standard iPhone keyboard word completion functionality to offer application-specific words when editing a UITextField. (How) can this be done? ...

Search by using the keyboard in a list/grid - algorithm

I need to implement a custom search in a grid and I would like to find some user interface guidelines that explain the standard way to implement it. I mean this kind of search that is initiated by the user using the keyboard. The focus on the grid must move to the first row that match the pressed key. I would like to find a good algori...

Transferring Win32 API WndProc Key messages from one window to the other

Hello, I'm developing for Windows Mobile in C++, and i'm running into a problem - I added my window class, and in it i handle the keyboard input with my WndProc implementation. The problem is that i'm getting the wrong codes, and identifying keys such as the func key incorrectly. And to make it worse, the values i'm getting (the wParam o...

x86 Assembly Keyboard Input Without INT

I need to make an animation which will accelerate when the user keeps a key pressed, and return to normal speed when the key is released. I can't "wait" for the user to enter a key like most DOS and BIOS interrupts do, since it'll stop the animation. I tried to use option 01H INT 16H, which works without pausing the program, but it doe...

Need Ctrl+Break on laptop without a Break key

The crux of the matter: -new Dell laptop without a Break key. -VB6 and VS2008 IDEs use Ctrl+Break to pause execution for debugging. -I need a way to map another key combination to trigger a Ctrl+Break My setup may make this easier or harder but to be clear I am running Kubuntu 9.10 (latest stable) and WinXP in a VirtualBox VM. Obvio...

How can I remap the keyboard with Perl on Win32?

I want to remap the keyboard with Perl on Win32 system. Is there any option to do that? If yes, could you provide an example? Remapping the keyboard means form example when the user presses a, he gets b or something else according to the remapping). ...

How to blink the Keyboard's LED using C# or VB.Net

Need to make the Keyboard's LED (Caps lock / Num lock or Scroll lock LED) blink either using C# or VB.net. (With or without using interop is fine) ...

OpenGL Keyboard Camera Controls

I have been following this tutorial series for OpenGL: GLUT: http://www.lighthouse3d.com/opengl/glut/ I have reached the stage of implementing camera controls using the keyboard: http://www.lighthouse3d.com/opengl/glut/index.php?8 When doing the advanced tutorial it stops working. I've pretty much just copied and pasted it. When I ...

Solution for iPhone new file dialog keyboard

i want to let the user type in the name of a new file, so there are certain characters i want to prevent entry on. is there a special keyboard i can use or can i disable certain keys on the iphones keyboard. is the answer to just run a regular expression on the input text and tell the user the filename is invalid (if so what would that ...

Detect if any key is pressed in C# (not A, B, but any)

Hi, [EDIT 3] I kind of "solved it" by at using the "strange" version. At least for the most important keys. It is suffient for my case, where I want to check that ALT and ALT+A are not the same (thereby making sure A is not pressed). Not perfect, but already to much time for such a tiny problem. Thanks for all the answers anyway... [ED...

keyboard hook in windows C++ or what?

Hi, I wish to build my own application which can send keyboard commands(messages) to the Windows OS. For example when I press ctrl+shit+n, I wish to launch the notepad.exe . How can I do that? Do you have some advices for me about the concept used. I've read that is possible when are used keyboard hooks? That's the only way? Do you ...

Build a Google Suggest box and respond to keyboard events without jQuery

I need to build a Google Suggest style drop-down box, but unfortunately am unable to use jQuery or Prototype due to various licensing restrictions. Pretty much the only thing I can use is public-domain stuff that I can modify and am not required to attribute ownership of someone else to. In any case, I can handle the AJAX stuff fine, a...

Programming with Macbook Pro, and map mouse left click to keyboard

Hi, I am very new to Mac. When programming with eclipse or any other application, is it possible to map mouse left click to keyboard ? ...

Are there any libraries for Python to simulate keyboard action?

The problem I have is that I have this Python script to launch a application. After the application is launched (the GUI is shown on screen), I want to make it de-activated. It can be done manually by activating another window, or minimizing this app, or pressing the Show Desktop key for WindowsXP. So is there any way that I can do this...

How can a console application (e.g. Java) recognize the source of the 'standard input' stream?

If I run 'python' on the linux command line, and I don't provide any command line arguments, the program displays a welcome message and waits for user input. I would assume that under the hood, the program sends the message to the 'standard output' stream and performs a blocking read on the 'standard input' stream. If, however, I invoke...

C# Low-Level Keyboard Hook Not Working

This is the code for my keyhooking class, but it doesn't work. I was wondering if someone can tell me why? I'm instansiating it in another Console application. The debug message gives the proper output, but the keyboard hook simply doesn't catch keys. I was hoping if someone could tell me why. namespace GlobalHooks { public class In...

Simulating a keypress AND keyrelease in another application?

Hi, I need to interact with an external application running, and send specific keypresses & releases. I've tried to use the SendKeys class, but it does only half of the job, as the keypress is being sent with an immediate keyrelease to the external applications. I need to be able to simulate a "key hold down" for the external app. I'm ...