GithubHelp home page GithubHelp logo

ahiipsa / navigation Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 4.0 155 KB

Keyboard navigation for Smart TV applications

Home Page: http://ahiipsa.github.io/navigation

CSS 2.58% JavaScript 84.22% HTML 13.20%

navigation's People

Contributors

ahiipsa avatar mangor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

navigation's Issues

Event when block is selected

What is the event that I should be using when the block is selected (not ENTER) in the demo? I need to display some information on another container based on the item selected so I need an even when I select an item by moving up/down/left/right.

Set current element onClick

Cool library! Really enjoying playing with it.

I have a UI that uses a set of A-Z bootstrap tabs, and is set up to have both mouse and smart tv nav. When the tab is focused on (nv-focus), it shows the associated tab panel. However, i've also got event listeners on all A-Z keys to show the tabs programmatically when a letter is pressed.

All works well, but if a tab is clicked, or a A-Z key pressed to show the tab, i can't find an effective way to set the targeted element to be the "current" one so the left/right navigation syncs up.

Is there a way to programmatically/manually set the current target element to navigate from?

Demo with ReactJs

Would you be able to create a demo using ReactJS? like the tv_app but with react.

Suggestions for improvement

Now library causes force reflow on every move, it will be good to add custom attributes for manually specify target element. Same story with horizontal and vertical navigations, we don't need to find next element with spatial navigation.

You can look at https://github.com/LibertyGlobal/sunbeam for some ideas

Scroll issue

Hi!. Where can i disable scroll on key down? It is not working as it should on hbbtv so i want to implement my own scroll.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.