Giter Site home page Giter Site logo

Comments (4)

connorprice avatar connorprice commented on September 3, 2024 1

Thanks for responding. I should have been more specific with my question in hindsight. When I say "back button" I'm talking about the physical button on a remote control, like the one found for most Android TV devices. This library linked perfectly with the d-pad and the enter button for the remote that I had and I was wondering if there were any events or links to that back button.

from js-spatial-navigation.

Yaffle avatar Yaffle commented on September 3, 2024

you could listen for changes and call history.pushState, saving the state, and listen for popstate , is this what you want?

from js-spatial-navigation.

TheGuy2003 avatar TheGuy2003 commented on September 3, 2024

Thanks for responding. I should have been more specific with my question in hindsight. When I say "back button" I'm talking about the physical button on a remote control, like the one found for most Android TV devices. This library linked perfectly with the d-pad and the enter button for the remote that I had and I was wondering if there were any events or links to that back button.

if you are using this for a browser based project then there is a small issue where not all keycodes from devices are passed back to the browser this means on some devices you could have limited functionality the best thing todo is test keycodes for diffrent devices the manifecturere should list them if they dont follow default android keycodes

i use this project in a browser basedoption and it does work perfect for what i need but i did find errors in the code passed back my self when it came to some android devices and the xbox browser where very few buttons do actually pass back the buttopn event by the keycode

from js-spatial-navigation.

kosso avatar kosso commented on September 3, 2024

Depending in which platform you are using, you need to listen (onkeydown) for an event.keyCode of 4, 10009 (for Tizen) and 461 (for webOS), or an event.code of 'Back'. (Also, some platforms will send event.which for the .code, so you need to test for this too).

from js-spatial-navigation.

Related Issues (20)

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.