luke-chang / js-spatial-navigation

A javascript-based implementation of Spatial Navigation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Making it work on WebOS for app development

Kax675 opened this issue · comments

I tried using it with webos sdk (while developing application for webos, you are developing with html css and js), I didn't get any error in console but navigation didn't work at all. Can you help?

@Kax675 Key events are not the same on the webOS as they are in your browser.
For me the easiest way of making this lib work on webOS, was forking and adjusting it to accept different keycodes at the init, and overwrite the ones hardcoded in the lib.

@KotKarol Would you mind sharing that fork? I'm looking to get this working well on both webOS and regular browsers.

commented

@Kax675 Key events are not the same on the webOS as they are in your browser. For me the easiest way of making this lib work on webOS, was forking and adjusting it to accept different keycodes at the init, and overwrite the ones hardcoded in the lib.

I couldn't even get the keydown event listener to work