keyboard

Excluding some keys from XGrabKeyboard

Consider an application where it's desirable to grab the keyboard when focused in order to capture all window manager commands (Alt+F4 and whatnot) for processing. Now, this has the downside that the user has no way of switching to another application or virtual desktop via the keyboard when the keyboard is grabbed. I'd like to have a us...

Objective C - Iphone. How can I show the numeric keyboard by default?

Hello, I'm trying the following with no luck. When the user click on a UiTextfield i need to change the keyboard view to the numeric view automatically, is this possible? Thanks in advance. ...

Removing iPad right after keyboard typing

Hi everyone, I'm trying to make a simple writing app for iPad. I added UIButtons above the keyboard manually without using inputAccessoryView. After launching my app in iPad or iPad simulator, I pressed UITextView to pop up the keyboard. Then if I pressed UIButton immediately after pressing any key in the keyboard, UIButton didn't r...

iOS: Keyboard replacement

Is there any way to replace the keyboard as you can do with the Android? If not completely replace, is there a way to extend it and add additional functionality? ...

TreeViewItem KeyboardNavigation doesn't work

Guys, I can't make KeyboardNavigation work for tree view. I figured out that the problem my some how related to the TreeViewItem, check this out for example: For ListBoxItem KeyboardNavigation works: <ListBoxItem> <StackPanel> <TextBox Height="20" Width="300" KeyboardNavigation.TabIndex="1"/> <TextBox Height="20" ...

XNA - Keyboard Input

I just started using XNA Framework 4.0 today, and I was wondering what the easiest way was to get input from the keyboard. I recognize a lot of C++ in C# but the whole Java side of it is alien to me. This coupled with XNA is a little confusing so, please be specific and give examples. Thanks. ...

Enable/Disable HTML Element (IFrame) to Prevent or Allow Tabbing to it / Focusing it

Hi, Is there an easy way to enable or disable an IFrame to take it out of the Tab order? I’ve created a simple HTML page that has several links that when clicked show or hide an IFrame associated with the link and set the SRC property of the IFrame to one of my Wordpress blogs’ PressThis forms. This way I can easily add a post to any o...

What is autoresizesForKeyboard and how does it work?

I was trying to find a way to adjust my screen when keyboard slides up so that the text field being edited (UITextView in my case) slides up and stays in focus instead of getting hidden behind the keyboard. I saw a few discussion on google groups mentioning - autoresizesForKeyboard - http://groups.google.com/group/three20/browse_thread...

How to grab keyboard from child controls in WPF?

I have some inputbindings in a Window: <Window.InputBindings> <KeyBinding Key="Space" Command="{Binding Path=StepNext}" /> <KeyBinding Key="R" Command="{Binding Path=ResetSong}" /> <KeyBinding Key="Left" Command="{Binding Path=StepPrevious}" /> </Window.InputBindings> The commands are defined in my viewmodel a...

WinForms Retrieve Keyboard State without Form/UserControl

I'd like to retrieve the state of the Ctrl keys in a place where I don't have a form. Normally to get a key state I'd use Control_KeyDown / KeyUp events. However, the code that needs to know whether Ctrl is pressed is outside any form. There is a form displayed, but the code is supposed not to depend on that form but finding the key sta...

jQuery keyboard navigation breaks on Firefox

The following code reveals a div on a keypress event of '?' (191). Works perfectly with Google Chrome but refuses to work with Firefox. Any ideas? $(document).keyup(function (e) { if(e.which == 16) isShift=false; }).keydown(function (e) { if(e.which == 16) isShift=true; if(e.which == 191 && isShift == true) { if ($('#keyboar...

how can I statistic my key press frequency and count

I am try to remap my keyboard to type better. But I need to know the frequency of each key include symbol, It will be great if include tab shift ctrl. I need all the keypress acounting not only frequency of letters appears in english words. I am using ibus-pinyin as my input method. and archlinux, awesome wm, without kde and gnome inst...

Android: softkeyboard control on HTC desire

I posted a question earlier today which was well answered by commonsware. I wanted a numeric keypad that had a go or done button that closed and executed a calculation class. Thanks to a tip from commonware on where to start I got this working beautifully on the emulator. Then I came to load it on to my HTC desire for testing and it does...

Relation Of KeyDown Event With Datagridview's RowHeaderVisible

Software I use: C#, VS-2005. I have a populated combobox in datagridview. I have noticed that when the datagridview property RowHeaderVisible is set to false then no keydown event is fired on editing control. But when I set RowHeaderVisible to true, the keydown event works fine. So, I know that the RowHeaderVisible property set to true...

Stop page from scrolling when intercepting key presses like space and arrows

I'm using JavaScript and Prototype and catching the key presses from the user. I successfully catch return, space and arrows with code like this: Event.observe(window, "keyup", function(e) { switch (e.keyCode) { case Event.KEY_RETURN: case Event.KEY_RIGHT: case 32: // space // do something break; } }); My ...

How to Raise Keyboard Events for Special Characters/ Extended ASCII? (Visual Basic 6)

Hello everybody, How to a raise a keypress event for Special Character for typing extended ASCII Characters ? Sample code snippet : keybd_event vbKeyE, 0, KEYEVENTF_KEYDOWN, 0 Is there any alternative so that I can use KeyCode for Special character [ E.g. Chr$(122) ] instead of predefined and limited VbKeyA, VbKeyB, VbKeyC ..... etc...

Dismissing the keyboard using firstResponder

To dismiss the keyboard I use either one of the following: [sender dismissFirstResponder] [self dismissFirstResponder] The problem is, I have a situation where the user selects a text field, and some other text field is the first responder with the keyboard showing. I want to dismiss the keyboard when this particular text field is sel...

Typing using key combinations?

I'm a Ubuntu 10.04 user who is looking for a way to, for example, make my computer type a "+" character when I hold down the Windows Key (I think it's called "super" in Linux world) and press the "k" key. I need this to work in all applications. (I'm a person with a typing disability, and I need to adapt Ubuntu to my needs.) Thanks! ...

OSX Leopard keyboard input API other than cocoa

Hi, I am currently trying to get simple keyboard input on OSX, right now I am doing it through the Leopard HID Manager object and that generally works, but since that is pretty low level I am wondering if there is an API available that has some extra functionality build it like key repetition or Unicode support (since when I catch the e...

How to start this GMaps demo with keyboard focus on it?

I'm looking at this GMaps example, and I would like it to start with focus of keyboard (so I can navigate using diretional keys and '+' and '-' for zoom), is there a way? The example code is: <!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <meta http-equiv="content-type" content=...