Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation API #5

Open
nfroidure opened this issue Oct 17, 2013 · 0 comments
Open

Navigation API #5

nfroidure opened this issue Oct 17, 2013 · 0 comments

Comments

@nfroidure
Copy link
Member

The key board and the mouse allow to navigate throught the document giving focus to particular elements. Here is a suggestion to implement it :

  • keyboard:
// hit tab/shift tab
keyboard.tab();
keyboard.revTab();
// Hit tab/shift tab until element is focused (may fail)
keyboard.tabTo(element);
keyboard.revTabTo(element);

We have to fire focus/blur events according to what the browser do.

  • mouse:
mouse.move(element);
mouse.moveTo(x, y);
mouse.focus(element); // click on an element and release on its parent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant