keyboard

Editable TextView with Second NavBar - Text appears, but too late.

Editable TextView with Second NavBar - Text appears, but too late. The app has a single Navigation Controller. I have an iPhone App that has basically three levels. Level 1 - Table with category Names Level 2 - Table with list of items for selected category Level 3 - Tabbed View with several views, including UITextView for details of i...

Programatically show the keyboard on iPhone app

I have a view with only one UITextView that is used to enter a value. I want that when the view shows, the textview becomes the first responder (that's the easy part) and also the default keyboard shows up. I tried searching for this in speca but to no avail. There are many posts on how to dismiss the keyboard, but what I want is to show...

Qwerty Keyboard in HTML

I need a QWERTY keyboard using HTML buttons, which enters the typed info into a text field. I can put one together, but it seems that this must have been done before, and I hate to reinvent the wheel. Does anyone know where I could find code for something like that? ...

keydown in flex Flex

I have an small application in flex in which I have defined 2 canvases. On one of them I added controls and the other one is used to draw something and no controls are added: <mx:Canvas x="0" y="80" width="100%" height="520%" id="Canvas1"/> <mx:Canvas x="0" y="0" width="100%" height="80" id="Canvas2"/> I add an keydown event handled t...

.NET Kiosk On-Screen Keyboard

I've developed a rather simple OSK for our kiosk application. It works by opening on the onfocus events fired by textboxes in our .net app. The problem is, we're trying to integrate with a single sign-on service which means we'll be opening a webbrowser control to handle the third party authentication. Since the textboxes for the SSO pag...

detect if NumLock is OFF and turn it always back ON

What is a method to detect if NumLock is OFF and how to turn it always back ON automatically when my VB APP is running ? EDIT: My app is dedicated app, running on dedicated computer with external numpad device. another option would be to ACCEPT NUMPAD ARROW KEYS (etc) and convert these to NUMBERS on fly, is it possible?? (e.g. ignor...

Keyboard focus being stolen by Flash

Performing a search, I noticed several questions dedicated to how to steal/trap the keyboard focus of the visitor. Considering this site is dedicated to programming that's not suprising. I was wondering if anyone can advise me on how to prevent this type of behavior. Losing keyboard focus to flash basically removes my browser's functiona...

Flash player 10 - full screen mode and keyboard

I am writing Flash app (Flash Player 10, AS 3.0) that is full screen capable. I got that part sorted (allowFullscreen=true, stage.displayState). I would like to give users ability to tab through the items there and activate them using space (MouseEvent.CLICK ;-). I know that any keyboard actions are blocked in full screen mode. This Ado...

.NET Winform Keyboard control

Is there a winform keyboard control out there? I am looking for a control which I can drag and drop. This is for a warehouse application which have touchscreen capability, like the ones found in the resturant applications. ...

Python disable/redirect keyboard input

I'm writing a macro generator/ keyboard remapper in python, for xubuntu. I've figured out how to intercept and record keystrokes, and send keystrokes I want to record, but I haven't figured out how to block keystrokes. I need to disable keyboard input to remap a key. For example, if I wanted to send 'a' when I press the 's' key, I can c...

C# - Detecting if the SHIFT key is held when opening a context menu

In my C# application I want to display a context menu, but I want to add special options to the menu if the SHIFT key is being held down when the context menu is opened. I'm currently using the GetKeyState API to check for the SHIFT key. It works fine on my computer but users with non-English Windows say it doesn't work at all for them...

Emulate Key Presses On an App that takes no Win Messages

I want to send an Application Key Presses, To Automate some stuff that has to be done repeatedly and So I don't always have to cramp my fingers. In C#, it's nice to use SendKeys.Send(), but this won't work because the Application doesn't take Windows Messages. SendKeys.SendWait() does nothing at all. How would I STILL Simulate the Keyb...

Suppress keystrokes to dialog

I have added a keyboard hook for a dialog that I don't control (it runs its own DialogProc Function in a library with closed source). I'm able to capture the key strokes, but the key stroke is always sent the dialog. This causes error beeps as well as some weird behavior. Installing the hook: hKeyHook=SetWindowsHookEx(WH_KEYBOARD, KeyH...

C# or .NET Flushing Keyboard Buffer

How do I flush the keyboard buffer in C# using Windows Forms? I have a barcode scanner which acts like a keyboard. If a really long barcode is scanned and the cancel button is hit on the form, I need the keyboard buffer to be cleared. So I need to flush and ignore all pending input. I need the buffer cleared because if the barcode conta...

Can you program buttons on a gamepad to bind with mouse/keybourd input?

I was wondering if there was a way to write a program that could bind buttons on a gamepad to certain mouse/keyboard inputs. For example moving an analog stick on the gamepad to move the mouse, and clicking certain buttons on the gamepad == pressing keyboard keys or mouse clicks. Which language would be able to do this? Thanks! ...

How to tell which SHIFT key was pressed?

In my game, I want to be able to use the right and left shift keys for different functions. In Java (or another language), is there any way to distinguish between those two? The KeyEvent class has only VK_SHIFT, which corresponds to both left and right shift keys. Same with Control, Alt, Enter, etc. My primary concern is someone may be...

How to remap "Context Menu" key in Mac OS X?

I have a Logitech keyboard (Ultra-Flat Keyboard Dark Shine to be exact), which has the context menu key in the middle of the windows and alt key, which is quite annoying. Here's a screenshot of where the key is: http://freshlog.com/grabs/ff532-How_do_I_remap_the_context_menu_key_in_Mac_OS_X I can remap the windows and alt keys under t...

[SWT] Modifier Key state

Hi all, I have a tiny (rikiki) problem in SWT ... I am making a small class extending org.eclipse.swt.widgets.Composite and which is supposed to be nested in an RCP app ... In this small class I have widgets which are supposed to react to mouse or keyboard event BUT I need to use modifier keys (Shift/Ctrl/Alt/...) to alter my copone...

[WinForms] How to determine which control is eating my keyboard events

In my .Net app, I keep running into the issue of a particular form/control which I expected to receive a keyboard event does not actually receive it. My debugging of this has not progressed much beyond caveman, eg setting breakpoints in all my controls, and seeing who ate a keyboard event that shouldn't have. There must be a better way...

Caps Lock State in Qt (or any mac API)

Hi! I'm trying to figure out how to get the caps lock state in Qt (4.5) but the only thing I managed to get from qt is either or not the CAPS LOCK was pressed or released, and then could't get the actual state. In order to solve that I've tried platform dependent and I got something working on xp. But now I'm looking for a solution on...