Search code examples
keyboard-eventsgoogle-tvgoogle-closuregoogle-closure-library

How to disable auto-repeated key events in tv-container


Is there a way to disable auto-repeated key events? Specifically I'm using the closure google tv web ui library, and when holding down/up scrolling through the components of a tv-container-vertical I'd like it to only move one at a time, regardless of whether the key is pressed or held.


Solution

  • The short answer is that it's not trivial to do. You will need to define the key behavior with your own handler which would override the GTV provided closure lib code for key navigation.