keyboard

iPhone - Keyboard hides TextField

I am using UITextField to receive user inputs. However, since my textfields are towards the middle/bottom of the nib, it gets hidden when the keyboard pops up. Is there any way sort of slide it along with the keyboard so that it's on the top of the keyboard during selection? Also, since I am also using the numberpad, is there an easy way...

Detect Caps Lock on/off using jquery

How can i detect caps lock key on/off using jquery.... I have a password textbox and i allow only small letters so i dont want caps lock key to be on.... Is it possible to detect the state of Caps Lock Key using jquery? ...

Using an international keyboard in iPhone app

I need to be able to force a different international keyboard, without the user manually having to go into the Settings application and enable that keyboard. For example, the user only has English (AU) enabled, and I want to be able to bring up a keyboard for inputting Chinese without them having to enable the keyboard, and switch to th...

What could be causing Vim to switch keymaps randomly?

I've noticed a problem with Vim, where the keyboard mapping would unexpectantly change (to French I think, but I'm not sure). For example, the character 'É' appears when the key '?' is pressed. My keyboard is set to English, and I don't have any other languages on my computer. Restarting Vim fixes this problem temporarily, but the prob...

Solaris 10 keyboard problem

Im runing Solaris 10 - but im having problems with the keyboard. Instead of - i get /, and instead of y i get z, etc. I tried changing every option in the menu "Keyboard Behaviour". I also tried changing kmdconfig from xorg to xsun, but then the graphics goes all wild and ugly - although the keyboard works fine then. Also cant change re...

How can I make my program execute a function from a keyboard shortcut?

How can I do it, even if my application.exe isn't the focused window ? For example, like the Windows + D shortcut... Works everywhere... I want that ALT + 1 do a function, ALT + 2 do another one, and so on... ...

Anybody know how to toggle caps lock on/off in Python?

Hi, I'm trying to toggle caps lock on/off when the two shift buttons are held down for a second. I've tried using the virtkey module, but it's not working. That module does work for other keys though, so I don't think I'm using the module incorrectly. Does anybody have a way for doing this? Just to be clear, I want to actually toggle ...

BlackBerry - Show typing mode indicator programmatically

Hi! Do you know some way to programmaticaly show different typing indicators on the screen? I know I can simply draw bitmap but I'd like to do it universally for any RIM OS version. Also, there is a setMode(int) function in 4.2.1 but in 4.3 it's already deprecated... Any suggestions will be helpful, thanks! ...

Are physical and programmatic keypresses handled differently by either .NET or the OS

Firstly some background information... I have a C# .NET application that runs on a slate pc i.e. no physical keyboard. We are using the on-screen keyboard built into Windows XP Tablet edition to populate TextBox controls on a form. There is no special key press handling for the form (although other components of the UI do handle key pre...

Simulating key press events in Mac OSX

Hi, I'm writing an app where I need to simulate key press events on a mac, given a code that represents each key. It seems I need to use the CGEventCreateKeyboardEvent function to create the event. The problem is that this function needs a mac keycode, and what I have is a code that represents the specific key. So, for example, I reciev...

Brackets and international keyboards

Most programming languages use parentheses for grouping subexpressions. In Aklo, I'm using square brackets for grouping subexpressions, on the grounds that the precious unshifted brackets should be used for the most common case. But that's on a US keyboard. Are there any keyboard layouts on which it's actually easier to type parenthese...

iPhone keyboard tweak

Hi there, I would reduce the time to get special characters when keeping a touch on the keyboard. Anyone has a clue? Thanks. ...

How to detect mouse and keyboard inactivity in linux

I am developing an app on python which will check for user inactivity. Is there a way to check for key press and mouse move events in linux? ...

Android Emulator - Having the keyboard display touch input when using physical keyboard to type?

Hello, was wondering if it was possible to use my physical keyboard to type, and have the android emulator simulate it as if it were a touch (specifically- the button highlights, and letter overlay) thanks ...

C# KeyDown alphanumeric culture dependent !

How to determine if the pressed Key is an alphabetical key regard to the culture specific keys: e.g.: '[' = 'ú' = 'ü' ... is the same key but with different value on different language Keyboards. I've tried to compare the ordinal key value: (int)e.Key >= 0x20E ..and <= .. but it does not work well, as modifier keys have sometimes s...

Android: show soft keyboard automatically when focus is on an EditText

I'm showing an input box using AlertDialog. The EditText inside the dialog itself is automatically focused when I call AlertDialog.show(), but the soft keyboard is not automatically shown. How do I make the soft keyboard automatically show when the dialog is shown? (and there is no physical/hardware keyboard). Similar to how when I pres...

UICatalog and Keyboard Events

Hi all - The latest version of Apple's UICatalog example application includes zero code in the TextFieldController for handling keyboard show/hide events, and yet the table view still slides up and down beautifully with the keyboard. Does anyone know what the new trick is? Are there settings in the XIB that allowed them to forgo regis...

AS3: How to get fullscreen and keyboard input?

Since flash doesn't allow keyboard input while in fullscreen mode I'm wondering if there is a workaround to that? I have a flash that is going to run fullscreen in a browser and needs different kinds of keyboard input. I have read something about AIR, but I don't fully understand it and would like another way if thats even possible. An...

How do I not allow typing in a text input field using jQuery?

I am using the jQuery datepicker on a text input field and I don't want to let the user change any of the text in the text input box with the keyboard. Here's my code: $('#rush_needed_by_english').keydown(function() { //code to not allow any changes to be made to input field }); How do I not allow keyboard typing in a text input fi...

WPF Keyboard Shortcut - Why is this not working?

I have the follwing code (which is not working): private void Window_PreviewKeyDown(object sender, KeyEventArgs e) { e.Handled = true; if ((e.Key == Key.P) && (Keyboard.Modifiers == ModifierKeys.Alt)) { MessageBox.Show("Thanks!"); } } Why doesn't this work? The ev...