Search code examples
samsung-smart-tv

Use USB keyboard for text input in Smart TV application


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.


Solution

  • Connected keyboard acts as remote control, with changed key codes.

    Keyboard input more can be changed: Samsung IME library changes mode when inputs text. But it uses undocumented API to do it.