keyboard

How to detect hardware keyboard presence?

Is there a way to detect if the device I'm currently running on has a hardware keyboard installed? How do I query device capabilities anyway? ...

How do I disable a textfield?

Hey! I have a textfield which displays a result but I don't want it to be accessible by the user as in I don't want the keyboard to come up. How would I go about that in text? ...

Send string from java (or other platform) to application

I want to send a barcode, read with my cellphone, to my computer. My computer has a simple server running, which listens to barcodes. When a barcode arrives, the server app should be able to input the value of the received barcode into the active application (I don't really care which application is going to get the input, the user shoul...

Could not send backspace key using ::SendInput() to wordpad application

I have used sendinput() function and windows keyboard hooks to develop a custom keyboard for indian languages. Project is in google code here: http://code.google.com/p/ekalappai The keyboad hook and sendinput functions are placed in a win32 dll. And they are called from a Qt exe. Our application works fine for most keys and application...

Make a form not focusable in C#

Hi! I'm wanting to write a virtual keyboard, like windows onscreen keyboard for touchscreen pcs. But I'm having problem with my virtual keyboard stealing the focus from the application being used. The windows onscreen keyboard mantains the focus on the current application even when the user clicks on it. Is there a way to do the same wi...

How can I Manage Home,EndCall and Back Button of MyAndroide Device Programitically?

I Want to manage Home,EndCall and Back Button.. I m working with foolowing but it 's not working for Home and EndCall Key public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK||keyCode == KeyEvent.KEYCODE_HOME ) { Log.i("In Home", " Event"); onDestroy(); return...

Manually changing keyboard orientation for a view that's on top of a camera view

I'm basically trying to reproduce the core functionality of the "At Once" app. I have a camera view and another view with a text view on it. I add both views to the window. All is well so far. [window addSubview:imagePicker.view]; [window addSubview:textViewController.view]; I understand that the UIImagePickerController does not supp...

android set hidden the keybord on press enter (in a EditText)

Hi, When my user press "ENTER" on the virtual android "user validate entry!" keybord my keybord stay visible ! (Why?) Here my Java code... private void initTextField() { entryUser = (EditText) findViewById(R.id.studentEntrySalary); entryUser.setOnKeyListener(new OnKeyListener() { public boolean onKey(View v, int keyCode, KeyEven...

AIR-FLEX: Keyboard events only sometimes working?

I am adding a key listener to my AIR application like so: <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" keyDown="onKeyDown(event)"> Yet only sometimes when I press keys does it actually invoke. I have no clue why, I thought maybe something else has focus. Well I cannot add key listeners to NativeWindow or...

My cocoa app won't capture key events

Hi, i usually develop for iPhone. But now trying to make a pong game in Cocoa desktop application. Working out pretty well, but i can't find a way to capture key events. Here's my code: #import "PongAppDelegate.h" #define GameStateRunning 1 #define GameStatePause 2 #define BallSpeedX 10 #define BallSpeedY 15 @implementation PongAppD...

VIM equivalent for (something like) 6xi?

There's a command in VIM where you can say how many chars to replace, and VIM will put a "$" at that many characters out, and you can type in the replacement for those characters. The original and new text can be different lengths. What's the command for this? ...

Keycodes of function keys with F-lock off?

Many recent keyboard from Microsoft and Logitech have a so-called F-Lock key, which toggles the function keys F1 to F12 between their traditional keycodes and new meanings that are printed onto the keys: F1=Help F2=Undo F3=Redo F4=Open ... . (See also http://en.wikipedia.org/wiki/F-Lock.) This means that long-established shortcuts such ...

How can i check if key is pressed during click event with jquery?

Hi, I would like to catch a click event with jquery and be able to tell if a key was pressed at the same time so i can fork within the callback function based on the keypress. for example: $("button").click(function() { if([KEYPRESSED WHILE CLICKED]) { do something... } else { do something different... } })...

Change the key being pressed with C#

Hey, I'm trying to write a program in C# that will track the pressing of certain keys (using a keyboard hook), and send different ones instead. For instance, when I press the A key it will instead send the Q key. I used http://www.codeproject.com/KB/cs/CSLLKeyboardHook.aspx this for my hooks and tried to use the SendKeys function, but ...

Dismiss android preferences dialog on Keyboard ACTION_DONE press

I would like to be able to close the editpreference dialog (as shown here http://twitpic.com/18ttdp) by pressing the 'Done' button on the keyboard. Currently, pressing 'Done' just dismisses the keyboard but leaves the dialog. In other parts of my application I use code similar to the following to intercept the 'Done' key press and exec...

Any simple shape recognition libraries for Java?

I am working on a on-screen keyboard for Android, and I need to recognize starting points, turning points and end points of lines drawn by the user on the keyboard. A simple straightening function would be nice, as it is difficult to draw a perfectly straight line even with a stylus, not to mention finger-only touchscreens today. What I...

How to hook keystroke to change from "C" to "Ctrl+C" in .NET ?

In specific time period, when user presses "C" I want it to happen as user presses "Ctrl+C". Actually, whatever key user presses the program should adds Ctrl with it. DO you know how to do that .NET ? I've look around for changing KeyEventArgs.KeyData but it cannot be set. ...

Show soft keyboard when Activity starts

I have 2 activities, A and B. When A starts, it checks for a condition and if true, it calls startActivityForResult() to start B. B only takes text input so it makes sense for the soft keyboard to automatically pop up when B start. When the activity starts, the EditText already has focus and it ready for input. The problem is that the ...

How do I test SendInput in c#

How can I tell if my call to SendInput is working properly? I have a small snippet below, and the message never seems to get hit. SendInput() returns 1, and there's no errors, so I assume that the message is going out properly. I've also tried the Form KeyPress and KeyDown Events, and I never seem to get those either. private void...

Intercept and ignore keyboard event in Windows 7 32bit

Hi all, My hardware has a problem, from time to time it's sending a "keydown" followed by a "keyup" event: keydown: None LButton, OemClear 255 keyup: None LButton, OemClear 255 keydown: None LButton, OemClear 255 keyup: None LButton, OemClear 255 It goes like this, every 1 or 2 seconds, forever, in Windows. In general it doesn't a...