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.

11723 questions
727
votes
26 answers

Using a piano keyboard as a computer keyboard

I have RSI problems and have tried 30 different computer keyboards which all caused me pain. Playing piano does not cause me pain. I have played piano for around 20 years without any pain issues. I would like to know if there is a way to capture…
Alex Gordon
  • 51,480
  • 273
  • 609
  • 976
718
votes
14 answers

Xcode 6: Keyboard does not show up in simulator

The keyboard does not show up when I run the simulator and click in the UITextView. How do I re-enable the keyboard? It used to work but now it doesn't - I don't know what I might have clicked by accident... any tips would be appreciated!
Katsu
  • 7,193
  • 3
  • 10
  • 7
528
votes
30 answers

Run javascript function when user finishes typing instead of on key up?

I want to trigger an ajax request when the user has finished typing in a text box. I don't want it to run the function on every time the user types a letter because that would result in A LOT of ajax requests, however I don't want them to have to…
David Zorychta
  • 11,768
  • 4
  • 38
  • 73
494
votes
44 answers

How to show soft-keyboard when edittext is focused

I want to automatically show the soft-keyboard when an EditText is focused (if the device does not have a physical keyboard) and I have two problems: When my Activity is displayed, my EditText is focused but the keyboard is not displayed, I need to…
430
votes
16 answers

Binding arrow keys in JS/jQuery

How do I go about binding a function to left and right arrow keys in Javascript and/or jQuery? I looked at the js-hotkey plugin for jQuery (wraps the built-in bind function to add an argument to recognize specific keys), but it doesn't seem to…
Alex S
  • 23,011
  • 18
  • 46
  • 61
425
votes
28 answers

Android: How do I prevent the soft keyboard from pushing my view up?

I have a vertical sliding drawer at the bottom of my app. When the soft keyboard opens, it pushes the tab for the drawer up, so it sits atop the keyboard. I actually want it to remain at the bottom of the screen, becoming hidden when the keyboard is…
Christopher Perry
  • 36,832
  • 42
  • 136
  • 182
388
votes
34 answers

How to dismiss keyboard for UITextView with return key?

In IB's library, the introduction tells us that when the return key is pressed, the keyboard for UITextView will disappear. But actually the return key can only act as '\n'. I can add a button and use [txtView resignFirstResponder] to hide the…
Chilly Zhong
  • 16,373
  • 23
  • 75
  • 103
358
votes
28 answers

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…
Randy Sugianto 'Yuku'
  • 64,635
  • 54
  • 168
  • 216
280
votes
32 answers

How do I detect if software keyboard is visible on Android Device or not?

Is there a way in Android to detect if the software (a.k.a. "soft") keyboard is visible on screen?
andreea
  • 2,955
  • 2
  • 15
  • 10
253
votes
45 answers

Making a UITableView scroll when text field is selected

After a lot of trial and error, I'm giving up and asking the question. I've seen a lot of people with similar problems but can't get all the answers to work right. I have a UITableView which is composed of custom cells. The cells are made of 5 text…
Jonathan
246
votes
31 answers

How do you tell if caps lock is on using JavaScript?

How do you tell if caps lock is on using JavaScript? One caveat though: I did google it and the best solution I could find was to attach an onkeypress event to every input, then check each time if the letter pressed was uppercase, and if it was,…
nickf
  • 499,078
  • 194
  • 614
  • 709
227
votes
37 answers

Move textfield when keyboard appears swift

I'm using Swift for programing with iOS and I'm using this code to move the UITextField, but it does not work. I call the function keyboardWillShow correctly, but the textfield doesn't move. I'm using autolayout. override func viewDidLoad() { …
Pedro Manfredi
  • 3,628
  • 5
  • 17
  • 20
194
votes
15 answers

Phone: numeric keyboard for text input

Is there a way to force the number keyboard to come up on the phone for an ? I just realized that in HTML5 is for “floating-point numbers”, so it isn’t suitable for credit card numbers, ZIP codes, etc. I want…
Tami
  • 2,661
  • 2
  • 16
  • 15
171
votes
11 answers

Super slow lag/delay on initial keyboard animation of UITextField

Alright, this problem has been driving me nuts. It takes roughly 3-4 seconds for the keyboard to pop up after I touch my UITextField. This only occurs on the first time the keyboard pops up since the app launched, afterwards the animation starts…
Vadoff
  • 8,831
  • 6
  • 40
  • 39
161
votes
6 answers

How to detect modifier key states in WPF?

Is there some global constructs that I can use whenever I need to access whether the Control, Shift, Alt buttons are down? For instance inside MouseDown event of a TreeView. If so how?
Joan Venge
  • 269,545
  • 201
  • 440
  • 653
1
2 3
99 100