Use USB keyboard for text input in Smart TV application

Ivan Solntsev picture Ivan Solntsev · Mar 6, 2013 · Viewed 10.8k times · Source

My application has implemented custom onscreen-keyboard.

Is there a way to support the USB keyboard connected to a TV? By default, Samsung TV translates some keystrokes to remote control codes (0-9, red, blue, etc..). Is there a way to get all keystrokes? Preferably without the use of IME.

UPDATE: I want to implement text input from the USB keyboard within my own onscreen virtual keyboard. By default, letter keys are not translated to application.

TV: UE46ES8000, USB, and BT keyboards connected and allow to control application, but unable to input text in it.

Answer

Dimitry Orgonov picture Dimitry Orgonov · Mar 17, 2013

You can connect keybords to your SmartTV but your TV need to support them.

In example this samsung keybord: http://www.samsung.com/uk/consumer/tv-audio-video/television/tv-accessories/VG-KBD1500/XU-spec?subsubtype=wireless-keyboard

is compatible with:

Samsung SMART TV: LED ES6100 series and above, PDP E550 series and above 

So if your TV device support USB or wireless keybord you do not need to translate any key codes in your application it will just work.