keyboard

How does CommandManager.RequerySuggested work?

The MSDN only states that Occurs when the CommandManager detects conditions that might change the ability of a command to execute. However I can't seem to find any traces of how this works, what I should be aware of / avoid etc... Does it just listen for input? (i.e.: mouse moves, keys pressed and so on) ...

Java: Checking if PC is idle

This is a rather tricky question as I have found no information online. Basically, I wish to know how to check if a computer is idle in Java. I wish a program to only work if the computer is in active use but if it is idle then to not. The only way i can think of doing this is hooking into the mouse/keyboard and having a timer. MSN Me...

Capturing key events in a mx:Image

I'm trying to capture key events in a mx:Image and I can't get it to work. <?xml version="1.0" encoding="utf-8" ?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" /> <mx:Canvas width="100%" height="100%"> <mx:Label id="lab" x="50" y="20" text="Nothing"/> <mx:Image x="50" y="50" source="@Embed('image...

Supress the Soft Keboard when an activity loads... yet again

this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); Same problem that I've read on other posts. I don't want the soft keyboard to pop up when the Activity loads. The above code snippet works, however my View no longer scrolls up so that the User can still see the EditText. It scrolls without t...

vb.net, How can I limit a textchanged event for a textbox to keyboard input only?

Hi everyone, Please allow me to explain what I have and what I am trying to achieve. I have a textbox (called txtb1) and a button under it (called btn_browse) on a winform in a vb.net project. When the user clicks the button a folder browser dialog appears. The user selects his desired folder and when he/she clicks 'ok' the dialog clo...

Which is the easiest way to simulate keyboard and mouse on Python?

I need to do some macros and I wanna know what is the most recommended way to do it... So, I need to write somethings and click some places with it and I need to emulate the TAB key to.. Thank you ...

Android : EditText with custom keyboard

Hello I created my own custom keyboard following the the example in the sdk. Now I would like to use this custom keyboard by default on my EditText in my app (actualy I have to long press the edittext and then choose my custom keyboard). How can I do that ? (seems to be related to the inputType property but I can't find out how to se...

Is there a way to move two squares in OpenGL simultaneously?

Hi, so I have a function that handles key presses in a game I'm working on in OpenGL. But, the thing is that even though I have made two squares and they both move when the correct key is pressed only one square is moved. Is there a way I can make the two squares move. This is the glutKeyboardFunc function I implimented: void handle...

Customize Soft keyboard with an Text Box in Android

Hi friends, ....I want to set an TextBox inside my custmize keyboard ..and whatever I write in that directly reply in my appliaction focus TextBox.Is it possible. An sample code for Soft Keyboard giving in Android SDK platforms\android-1.1\samples ..find it. Thnx in Advance. ...

show iphone keyboard programatically xcode

Hi.... i want show the iphone keyboard. so how can i write the code(programatically) to show keyboard. Thanks In Advance ...

Fix keyboard orientation in landscape iPad app (upside down keyboard)

I'm converting a landscape (UIInterfaceOrientationLandscapeRight) iPhone app to be a universal app. So far I've got the orientation working properly: the iPad version will launch with the right splash graphic and start in the right orientation (LandscapeLeft or LandscapeRight) depending on how the user is holding it. But: when I trigge...

Are there special key events in Windows I can't handle?

Are there any key events I cannot handle in my C# program? For example, can I implement differently Windows's events: Ctrl+Alt+Del, Alt+Tab, WindowsKey+D, etc. ...

Eclipse: Filter "open resource" based on path as well as name?

As the title suggests, is there any way to filter the “Open Resource” dialog based on path? For example, so I can navigate to c/foo or d/foo without having to up/down through the {a,b}/foo? ...

How to modify Keyboard interrupt (under Windows XP) from a C++ Program ?

Hi everyone ! We have been given a little project (As part of my OS course) to make a Windows program that modifies keyboard input, so that it transforms any lowercase character entered into an uppercase one (without using caps-lock) ! so when you type on the keyboard you'll see what you're typing transformed into uppercase ! I have do...

m and s keys do not work over vnc connection to ubuntu server

I'm new at setting a lot of this up, so bear with me. I installed Ubuntu 10.4 server on a 64 bit machine. Then I added vnc so I could manage it while it's racked. I start the server, SSH to it, and run vncserver :1 At this point, all keys work fine. Next I exit out of the SSH session and fire up my client vnc app. I connect via the I...

Android ListActivity ArrayAdapter filtering with no physical keyboard?

I have a ListActivity based on an ArrayAdapter with setTextFilterEnabled set to true. This works fine on a device with a physical keyboard. When I start typing something on the keyboard, the items get filtered. My question is how to get the same behavior on a device with no physical keyboard? ...

How do I stop/workaround Java apps stealing focus in Linux window managers

We want to quickly prototype widgets in Java. We overlay them on top of a display written in a proprietary 3rd party graphics package. We find that the Java GUI steals keyboard focus away from the window manager. The window manager is fvwm, I've tried configuring it so the Java app is setup not to get focus, and furthermore if it ever...

iPhone keyboard, Done button and resignFirstResponder

This is probably a dumb question, but I can't find the answer in the docs. Did the "Done" button on the pop-up keyboard always cause the keyboard to disappear? I see a lot of code around the web like this: - (BOOL)textFieldShouldReturn:(UITextField *)theTextField { [theTextField resignFirstResponder]; return YES; } When I pres...

Keyboard view is obscuring UITextField in landscape mode

Note: this happens prior to any of the UITextFields being pressed (e.g. the keyboard hasn't yet appeared in the View) I've created a simple view with 3 fields 1 of which appears above where the keyboard would appear, and 2 which appear below. Loading it into a ViewController works fine until I come to try to click on the 2 UITextFields...

Multiple key binding in WPF

How can i execute some command on, lets say, Ctrl+Shift+E? As i saw we can write the following: KeyBinding kb = new KeyBinding(TestCommand, Key.E, ModifierKeys.Control); this.InputBindings.Add(kb); But how can i add more ModifierKeys or Keys? ...