user interaction q&a the following questions are related to user interaction features provided by a keyboard, mouse, or pointer faq search form search q1 how do i disable the pointer or mouse in my application? to disable the pointer and mouse functionality in your application, make sure the "config xml" file contains the following elements <tizen setting pointing-device-support='disable'/> <tizen profile name="tv-samsung"/> for more information, see mouse #pointer #mouse #disable #air pointer #pointing device tv, htv q2 which keyboard keys must be mapped to remote control keys? even if your application does not support a keyboard, there are some hidden keys that work with a keyboard the following hidden keys must be mapped to the remote control keys hidden key remote control key hidden key remote control key esc return f5 smart hub number keys channel number f6 source windows key menu f7 channel list arrow keys move focus cursor f8 volume mute enter enter f9 volume down f1 color key a f10 volume up f2 color key b f11 channel down f3 color key c f12 channel up f4 color key d number pad input channel number table 1 hidden key mapping #key #mapping #remote control #hidden key #keyboard event tv, htv q3 can i disable the keyboard? no, it is not possible to disable the keyboard since some keyboard keys have the same code as the remote controls key, they cannot be disabled for other keyboard keys, implement a default action to make sure the application does not respond when they are pressed for more information, see keyboard/ime #disable #keyboard #key #ime tv, htv q4 can i register the "exit" key to show the broadcast channel? the samsung policy requires that the "exit" key allows the user to exit the application and return to the live broadcast channel immediately from anywhere within the application however, there is no samsung api method that you can use to manually implement this behavior for the "exit" key to follow the policy, unregister the "exit" key and do not handle it in your application the key's default behavior implements the policy in contexts other than the "exit" key click, you can close the application and all its content by calling the getcurrentapplication exit method for example, a "return" key click opens a popup with "yes" and "no" buttons, and selecting the "yes" button calls the getcurrentapplication exit method notedo not open a popup after the "exit" key click the "exit" key click must immediately exit the application, and any other behavior causes your application to fail its certification checks #exit key #broadcast channel #show channel #application exit #closing application tv, htv q5 can the ime keyboard to be customized to show the number pad only? to customize the ime to show the number pad only, in the input element, set the type attribute to number this disables all the letter keys and prediction in the ime noteon 2015 tv models, this works correctly however, the 2016 and 2017 tv models do not show the ime correctly the issue will be fixed in a future firmware release for more information on the ime, see keyboard/ime #ime #customize #keyboard #number pad #number input type #num pad tv, htv q6 how do i block key navigation? to block a key event, register the key tizen tvinputdevice registerkey keys[i] ; the registration blocks the key's default functionality #block #key #register #event #disable #prevent tv, htv q7 how do i fix a non-functional "smart hub" or "power" key? if you register an event for a function key but do not add code to handle the event, the key no longer works the default function of the key stops working when you register the key event in your application notedo not register keys that are supposed to be handled by the platform, and only register keys that the application uses #smart hub #power #key #broken #not working tv, htv q8 can remote control keys be long-pressed? some samsung tv remote control keys have separate functionalities for normal and long presses, while others only recognize a normal key press for information on which keys support long presses, see remote control #long press #key #remote control #different key function #smart remote tv, htv q9 can i implement remote control special key functionalities in the tv web browser? no, it is not possible to make the remote control special keys, such as the color or playback control keys, work in the web browser the web browser does not have access to the samsung product and tizen apis #remote control #special key #color key #playback control key #web browser #key mapping tv, htv q10 can i define the maximum input length for an html "input" element? yes to set the maximum length for an input element, define the length in characters using the maxlength attribute #html #input element #maximum length #text entry tv, htv q11 what is the "return" key policy? from your application home screen, you can implement the "return" key to terminate or hide the application for more information, see terminating applications #return key #hide #terminate #policy #key mapping #exit tv, htv q12 which input characters does the samsung ime support? the samsung ime supports the standard keyboard characters, such as upper and lower case letters, numbers, punctuation, and symbols #input method editor #ime #character #number #letter #punctuation #symbol #keyboard tv, htv q13 what are the key codes for remote control and keyboard keys? each remote control key has a key name and corresponding numerical code value since keycode values can differ depending on the tv model and platform version, it is recommended to implement key input using the key names whenever possible if you implement keyboard input, the keyboard keys also have key codes #remote control #key name #key code #keyboard #key mapping tv, htv q14 why does the ime not work in the emulator? is it only available when testing on an actual tv? the ime does not display correctly in the emulator this is a known issue #input method editor #ime #emulator #keyboard #tv device tv q15 when implementing application exit, what is the difference between the getcurrentapplication exit and getcurrentapplication hide methods? the getcurrentapplication exit method of the application api closes the application and all its content for example, a "return" key click opens a popup with "yes" and "no" buttons, and selecting the "yes" button calls the getcurrentapplication exit method for more information, see terminating applications use the getcurrentapplication hide method when you do not want to close the application, but only hide it in the background for more information, see multitasking #return key #hide #exit #terminate #multitasking #application api tv, htv q16 after a keyboard key is pressed, "input" elements do not work properly how do i prevent this? to avoid issues with keyboard key presses preventing html input elements from working properly, do not implement the preventdefault method within your keydown and keypress event listeners #html #input element #keyboard #preventdefault #keydown #keypress #no input tv, htv q17 how do i implement pointer support? the pointer is a feature on the remote control included with 2015 samsung smart tv models the feature allows the user to move the mouse cursor by gesturing with the remote control to enable pointer support in your application, implement mouse support #pointer #gesture #remote control #mouse #air pointer tv, htv q18 can i implement an ime that handles events for letter keys from a usb keyboard? no since keycode values for keyboard keys can differ depending on the tv model and platform version, event handling for specific letter keys is not supported for more information on handling keyboard and ime input, see keyboard/ime #ime #input method editor #keyboard #keycode #letter key #key event tv, htv