Questions tagged [keyboard]

A text input device. Use this tag to ask programming questions related to typing, keyboard hiding and more.

What topics don't belong here?

If your question is about:

  • Making a (physical) keyboard: See electronics.SX. (Of course, if you want to implement/imitate a keyboard in software — e.g. an on-screen keyboard — then go right ahead and ask.)

  • Configuring your keyboard: See superuser.com, unix.SX, or another site that covers using computer systems — Stack Overflow is about programming them.

  • Interfacing with a device resembling a piano: This is not the tag you're looking for. Move along.

12648 questions
5
votes
2 answers

Keyboard input in android NDK using NativeActivity

I'm looking for a way of getting input from the software keyboard from a Android NativeActivity. I found this, that provides some sample code of how to get the software keyboard out (and it works), but lacks a few points of interest: How to get…
5
votes
1 answer

How to simulate HOLDING a keystroke in Keyboard Maestro?

Using Keyboard Maestro 5, I want to be able to simulate holding a specific key for a specific amount of time for one of my macros. I am not sure if this is currently possible, and I have yet to find a work around. Any help would be appreciated in…
5
votes
1 answer

Softkeyboard event Listener in Android

I'm making android phonegap application. I set editText under the CordovaWebView. I want to get keyboard show / hide event. Try to calculate view height , but fail. When editText has focus , keyboard is shown. But CordovaWebView goes up , and view…
Yajap
  • 365
  • 1
  • 3
  • 10
5
votes
1 answer

Programmatically tab to next control in Ext JS

I've written a wrapper UX control in Ext JS 2.x around Ext.Form.DateField to handle keypresses slightly differently. In particular, when the calendar is on display, I want the Tab key to select the highlighted date and move to the next form…
Matthew Strawbridge
  • 19,940
  • 10
  • 72
  • 93
5
votes
2 answers

How to determine the current input language?

I am designing an on screen keyboard, I need to determine which language been set by the user and which language he is using now in the other threads, i.e. I need to know the language selected in the taskbar language switcher: P.S. current culture…
Abdallah Nasir
  • 607
  • 6
  • 33
5
votes
1 answer

How to get the keyboard to show a return key?

I think I've tried every combination, but I can't get the alpha keyboard to show the return key. It's always a "Done" button, which is not useful. On a Nexus 7 (4.1), it's worse, and shows a stupid smiley button along with the Done button, which…
Frank
  • 605
  • 1
  • 8
  • 14
5
votes
3 answers

Change android:digits programmatically

I have this in the layout xml android:digits="0123456789." android:inputType="phone" /> What I want is to be able to change it programatically and be able to change it back and forth. The inputType part is fine…
sergi
  • 1,049
  • 2
  • 12
  • 22
5
votes
0 answers

Keyboard shortcut in Eclipse to move file from one editor to another

Does anyone know if there is a keystroke in eclipse that will, if you have two editor panes, move the file you're looking at from the editor pane it is on to the other one? Use Case: I have three files open: two on the left and one on the right. I'm…
joewyrembelski
  • 156
  • 1
  • 2
  • 8
5
votes
1 answer

Hiding soft keyboards on mobile devices when using contenteditable divs

I am using contenteditable divs for a page to be viewed by mobile devices to get input for some stuff. I want the soft keyboard to hide when the user presses enter, instead of the normal action of enter in a div. My first attempt at getting it to…
FlyingCube
  • 131
  • 1
  • 5
5
votes
1 answer

How to detect key up or key release for the capslock key in OS X?

I'm having a problem with OS X detecting keystrokes. I need to detect a key down AND a key release or key up whenever a keyboard key is pressed. This is fairly straight-forward when intercepting the application's event handling chain with [ NSEvent…
Ted Middleton
  • 6,859
  • 10
  • 51
  • 71
5
votes
1 answer

PHP Storm and Option key in Mac

Looking for a way to fix the option key not working with PHP Storm and the Mac. I use things like: Option + Left or Right: Navigate to previous / next word. Option + Shift + Left or Right: Highlight previous / next word. Option + Backspace: Delete…
elightbo
  • 219
  • 3
  • 12
5
votes
1 answer

Keyboard on ios moves my fixed position header nav

I have a navigation bar that is fixed to the top of the window when scrolling. However, when I click an input and the keyboard pops up the fixed position nav moves and gets stuck in the wrong position. Any way to fix this? Also, I cannot seem to…
iluvpinkerton
  • 3,058
  • 3
  • 14
  • 17
5
votes
2 answers

Can I determine which keyboard a key pressed is on?

Users of my application have a second keyboard with special function keys. Unfortunately, the keys are mapped to buttons such as F, G, F1 and so on. I would like to handle PreviewKeyDown and prevent any keys from these keyboards having an effect in…
James L
  • 16,456
  • 10
  • 53
  • 70
5
votes
1 answer

Listening for keyboard presses in OS X

I'm trying to write a simple launcher app for OS X. This means writing a background process that can listen for keys being pressed. How is this done in OS X? Can I install a listener somewhere, or can I poll the current state of the keyboard?
Zarkonnen
  • 22,200
  • 14
  • 65
  • 81
5
votes
1 answer

Is there a delegate call when iOS keyboard language changes?

I have a scenario where I'd like to have a handler that gets triggered when the user presses the language change(globe icon) on the keyboard for iOS. How I may achieve that? Thanks
Adrian
  • 631
  • 1
  • 6
  • 11
1 2 3
99
100