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
1 answer

Unicode Keystroke Characters?

Does unicode have characters in it similar to stuff like the things formed by the tag in HTML? I want to use it as part of a game to indicate that the user can press a key to perform a certain action, for example: Press R to reset, or S to…
AJMansfield
  • 4,039
  • 3
  • 29
  • 50
5
votes
2 answers

Capturing Enter key on Android's onKeyDown

I'm making a remote app that requires a keyboard. I'm not using an EditText, I am forcing it to invoke pragmatically. In the activity, I have a semi intelligent onKeyDown code that translates the android keycode into the ascii code processable by my…
Osmium USA
  • 1,751
  • 19
  • 37
5
votes
1 answer

C# Low-Level Keyboard Hook Not Working

This is the code for my keyhooking class, but it doesn't work. I was wondering if someone can tell me why? I'm instansiating it in another Console application. The debug message gives the proper output, but the keyboard hook simply doesn't catch…
Overload119
  • 5,124
  • 5
  • 29
  • 34
5
votes
1 answer

How do I blink/control Macbook keyboard LEDs programmatically?

Do you know how I can switch on/off (blink) Macbook keyboard led (caps lock,numlock) under Mac OS X (preferably Tiger)? I've googled for this, but have got no results, so I am asking for help. I would like to add this feature as notifications (eg.…
turbofart
  • 53
  • 2
  • 3
5
votes
2 answers

How can I get the keyboard scan code in java?

I would like to write an application where the keybindings are specific to the location of the key on the keyboard, not the character they are mapped to. For example, the key that is between t and u on a US keyboard should perform a specific…
Scaatis
  • 137
  • 2
  • 10
5
votes
0 answers

HID keyboard descriptor for 7 keys

I am trying to make a HID USB keyboard. The default HID descriptor has a 6-key HID report. Here is the descriptor, and I have tested it working: static const uint8 hid_descriptor_keyboard[] = { /****/ 0x05, 0x01, /* USAGE_PAGE (Generic…
user2461391
  • 1,433
  • 3
  • 16
  • 26
5
votes
1 answer

xkb: Correct way to interact with it on Mint 15/Ubuntu 13

I would like to know what is the currently approved way to interact with the X11 xkb apparatus to effect changes in the keyboard layout. (For Mint 15 Cinnamon, though I suspect Ubuntu 13 would be a close match for this topic). I studied up on xkb,…
gwideman
  • 2,705
  • 1
  • 24
  • 43
5
votes
0 answers

Android onKeyListener dont trigger for KEYCODE_DEL

I just want to catch the backspace key. All other keys are working fine. The Log.i Message is also not triggered. dialog.getWindow().setSoftInputMode( WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE); dialog.setOnKeyListener(new…
Kiwi
  • 83
  • 1
  • 6
5
votes
2 answers

Take screenshot programmatically of the whole screen

I'm taking screenshot as below: public static Bitmap takeScreenshot(Activity activity) { View view = activity.getWindow().getDecorView(); view.setDrawingCacheEnabled(true); view.buildDrawingCache(); Bitmap bitmap =…
lseeo
  • 799
  • 2
  • 9
  • 15
5
votes
2 answers

read raw input from keyboard in python

I'm trying to get the raw input of my keyboard in python. I have a Logitech gaming keyboard with programmable keys, but Logitech doesn't provide drivers for Linux. So i thought i could (try) to write my own driver for this. In think the solution…
Kritzefitz
  • 2,644
  • 1
  • 20
  • 35
5
votes
4 answers

Close keyboard when scrolling in dropdown on autocompletetextview in Android

I have an autocompletetextview which I have linked it to a webservice so it shows me suggestions as I type. Now how can I hide the soft keyboard when the user starts scrolling through the autocomplete dropdown? I looked through the net but didnt…
user2351012
  • 71
  • 2
  • 3
5
votes
1 answer

Cloud9 IO disabling keybindings or Cloud9 alternative

I have found Cloud9.io and I'm going to use it for teaching people to code in html, css, javascript and php, but there is one problem. We all are czechs and if we want to create {, we press Right-Alt + B and for }, we press Right-Alt + N. However,…
Kyrbi
  • 2,212
  • 7
  • 25
  • 42
5
votes
2 answers

Showing autocompletetextview results as suggestions above keyboard

I have an autocompletetextview and it works very well but I would like to show the results as suggestions above the keyboard. It does this by default when in landscape mode, but not when in portrait. Is there a way I can force it to do the same in…
5
votes
1 answer

Is there any documentation about MSKLC .klc file format?

I need to parse .klc files from msklc and I can't find any docs about it's format. I know this format is simple, but I have some misunderstanding. So where I can find information about it?
A1exandr Belan
  • 4,442
  • 3
  • 26
  • 48
5
votes
2 answers

Main Menu navigation / keyboard input speed is too fast

I recently started to make video games using the XNA game studio 4.0. I have made a main menu with 4 sprite fonts using a button list. They change color from White to Yellow when I press the up and down arrows. My problem is that when I scroll…