Question
I imported an EnyoJS project originally developed for WebOS into Tizen Studio and ran it on a Samsung TV. I'm encountering an issue with the virtual keyboard:
- When I click on a text field, the virtual keyboard appears on the TV screen
- After pressing any key, the keyboard immediately disappears
- The pressed character appears in the text field, but I need to click the field again to bring up the keyboard for the next character
- This cycle repeats for every character, making text input extremely inefficient
How can I modify this behavior to keep the keyboard visible during text input?
Answer
Problem Understanding
The issue occurs specifically with Input components in an EnyoJS application ported from WebOS to Tizen. The keyboard behavior differs from normal Tizen applications where the keyboard typically remains visible until explicitly dismissed.
Solution Methods
-
Check Input Component Type:
- As mentioned in Answer 2, this issue appears specific to Input components
- Consider using TextArea components instead if possible, as they don't exhibit this behavior
-
Keyboard Focus Management:
- Implement focus handling to maintain keyboard visibility
- Add event listeners to prevent default keyboard dismissal behavior
-
Platform-Specific Forum:
- As suggested in Answer 1, consult the Samsung TV Developer Forum for platform-specific solutions
- Visit: Samsung TV Developer Forum
Code Examples
// Example of maintaining keyboard focus
inputField.on('focus', function() {
this.setFocus(true);
// Prevent default keyboard dismissal
event.preventDefault();
});
Additional Tips
- Test keyboard behavior with different input types (text, number, password)
- Consider implementing a custom keyboard component if the system keyboard behavior cannot be modified
- Verify if the issue persists across different Tizen TV models and software versions