Skip to content

by using the FocusManager, you can control the remote controller

Notifications You must be signed in to change notification settings

sphynxlee/FocusManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

FocusManager

by using the FocusManager, you can control the remote controller

FM can detect which key you had pressed, and then let the focus move by your direction

usage:
Initial

var focusManager = new FocusManager();
focusManager.addFocusItems(document);  
focusManager.setStartfocus(0);

To navigate the focus

focusManager.toUP();
focusManager.toDOWN();
focusManager.toLEFT();
focusManager.toRIGHT();

When you want to focus currentItem

focusManager.clickFocus();

About

by using the FocusManager, you can control the remote controller

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published