keyboard

Javascript keyup/keydown in .NET WebBrowser Control

Hi all, I have a .NET WebBrowser control that I am using to display some javascript-heavy pages that I've written. The pages use YUI and have been built in a way to be portable. I have just discovered that while I can capture keypress in javascript, I cannot seem to capture keyup or keydown in javascript. This prevents me from hooking ...

wxPython - Trapping Mouse & Keyboard Events without window Focus

I am attempting to write a time management tool with wxPython that is ideally non-obtrusive and very much out of the way. The app so far can be used normally and minimized to the system tray for the duration of its use. However, I notice that once the frame is not in focus, as it is when its 'Iconized', the mouse and keyboard trappin...

UISearchbar clearButton forces the keyboard to appear

I have a UISearchBar which acts as a live filter for a table view. When the keyboard is dismissed via endEditing:, the query text and the gray circular "clear" button remain. From here, if I tap the gray "clear" button the keyboard reappears as the text is cleared. How do I prevent this? If the keyboard is not currently open I want th...

How to select specific combobox item with multiple keystrokes? First few characters of item

Windows explorer in XP will allow you to make a file selection based on typing a few characters. I would like to know if there is any simplistic .net feature I can use to mimic this behaviour in a combobox? I think I've seen this happen in comboboxes before, and would like to know if there is a property I can use? I know I could develo...

C# - How to detect the currently pressed key?

In WinForms, you can know, at any time, the current position of the cursor thanks to the Cursor class. The same thing doesn't seem to be available for the keyboard. Is it possible to know if, for example, the Shift key is pressed? Is it absolutely necessary to track down every keyboard notification (KeyDown and KeyUp events)? Thank yo...

Fixed keyboard inside a UIView

Is there a way to include a keyboard inside of a view? I want it to be part of the view and not be dismissed as well. Birdfeedapp does this in it's 'add account' modal view. ...

WinForms key press isn't working right

update: I've modified the code below to reveal some additional information regarding the key that was pressed. update #2: I've discovered the root cause of the issue: we have an HTML control (Gecko rendering engine) on our form. When that Gecko rendering engine navigates to some Flash control, suddenly ~2% of our key presses don't get t...

Detect Combination Key Event

I would like to perform key event detection in textbox. The key should combination of Ctrl+K, is there any best way to do it? ...

Keep iPhone keyboard-aligned toolbar visible through first responder change?

I'm using the method described by Josh in this question to add a toolbar to the top of the iPhone's keyboard. Basically, the idea is: Add the view controller as an observer for the notifications UIKeyboardWillShowNotification and UIKeyboardWillHideNotification in its initialization method Whenever those notifications are posted, animat...

Keyboard doesn't disappear

While using UITextField in objective c, keyboard appears, after typing some figure I wanna move to another Textfield or button but neither the cursor removes from text field nor the key board disappears. Wat should i do? tempTextField.borderStyle = UITextBorderStyleBezel; tempTextField.textColor = [UIColor blackColor]; tempTextField.fon...

Produce keyboard Events key hits

How to make a simple C program which will produce keyboard key hits. if ( condition ) { KeyPress('A'); } I am working on Ubuntu 8.10 Linux OS ...

How to close/hide the Android Soft Keyboard?

I'm having an EditText and a Button in my layout. After writing inside the edit field and clicking on the Button, I want to hide the virtual keyboard. I guess there should be a simple, one- or two-liner to make this happen. Where can I find an example of it? ...

Capture and send keyboard / mouse input in C#

I am looking for a way to send and receive keyboard information regardless of what app has focus. I remember back in College seeing a presentation about an old Windows API that let you change the cursor position and send right clicks and such. Besides User32.dll is there a way to do this with the .net framework? ...

UIkeyboard type

I want to use only alphabetic keyboard, how to restrict it? I've used following statement but it doesn't hide the button that converts keyboard in numeric one tempTextField.keyboardType = UIKeyboardTypeAlphabet; ...

how to handle properties key in CListCtrl?

I want to handle the properties key press in CListCtrl in MFC and show a context menu which is already shown with right clicking. How can I do that? ...

How do I show the number keyboard on an EditText in android.

I just basically want to switch to the number pad mode as soon a certain EditText has the focus. ...

VMware does not provide proper keyboard mapping

I'm using a Toshiba Tecra M6 laptop, running Linux Mint as my default OS. I also have VMware player (6.5.0) installed to test some of the applications on Windows. However, it really annoyed me when VMware does not provide proper keyboard mapping. My downward arrow would be mapped as the Windows key, while the Windows key does not work a...

Detect when Android software keyboard is hidden

I need to detect when the android software keyboard is hidden. My activity currently responds to when the hardware keyboard is hidden but the software keyboard looks like it can only be implied through a size changed event. Does anyone know of a way that a view or activity can receive a notification when the software keyboard is hidden ...

iPhone - Have the keyboard slide into view from the right like when editing a note in Contacts

Hello, I'm looking for a way to slide the keyboard into view from the right, like what happens in the Contacts application when you edit a note. My problem is that when I call [someTextView becomeFirstResponder] in viewWillAppear, the keyboard immediatly pops up with no animation. And when I call it in viewDidAppear, the view first sli...

UITextField - how do i use a custom keyboard and disable the default keypad.

I am using a UITextField to get input for a price field. Since it is for price, I wanted to make a custom keyboard for just a numpad and a decimal button. I have the keypad view setup, however, I dont' know how to disable the default iphone keyboard completely. Any ideas? ...