Top "Keyboard" questions

A text input device.

Check if a key is down?

Is there a way to detect if a key is currently down in JavaScript? I know about the "keydown" event, …

javascript input keyboard
How to know if .keyup() is a character key (jQuery)

How to know if .keyup() is a character key (jQuery) $("input").keyup(function() { if (key is a character) { //such as …

javascript jquery events keyboard keycode
How can I programmatically check whether a keyboard is present in iOS app?

I need to check the condition of keyboard visibility in my iOS app. Pseudocode: if(keyboardIsPresentOnWindow) { //Do action 1 } else if (…

ios objective-c keyboard
Is it possible to program Android to act as physical USB keyboard?

What I really want to know is whether it is a hardware problem, or a software problem. Could I plug …

android keyboard usb
What is the height of iPhone's onscreen keyboard?

The height in portrait and the height in landscape measured in points.

ios iphone keyboard height
How can I hide the Android keyboard using JavaScript?

I would like to hide the Android virtual keyboard in JavaScript. Someone suggested doing this: $('#input').focus(function() { this.…

javascript android keyboard
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 …

javascript keyboard capslock
iPhone keyboard, Done button and resignFirstResponder

This is probably a dumb question, but I can't find the answer in the docs. Did the "Done" button on …

iphone objective-c cocoa-touch keyboard uikit
Xcode iOS 8 Keyboard types not supported

I have a UITextField Ctrl-dragged as an @Outlet in my .swift class. Now in viewDidLoad i'm using this code self.…

ios xcode keyboard swift ios8
Where can I find a list of Mac virtual key codes?

I'm using CGEventCreateKeyboardEvent and need to know what CGKeyCode values to use. Specifically, I am after the key code for …

macos keyboard quartz-graphics keycode cgkeycode