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

Extend keymaster to support dispatching key events to elements #76

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

johnjbarton
Copy link

You may not care for this direction, but FYI.

Extend keymaster to support dispatching key events to elements.
Overload key() to include key(descriptor, view, element)
where |descriptor| is the same as the shortcut definition version,
|view| is the dispatch view (defaults to 'window'),
|element| is the dispatch target.

Add selftest.html, modified from test.html to issue console.warn
for passing tests and console.error for failures.

Tests pass but I've not driven this model out on the road yet.

key events to elements. Overload key() to include
key(descriptor, view, element) where descriptor is the same
as the shortcut definition version, view is the dispatch view (defaults
to 'window'), element is the dispatch target.
Add selftest.html, modified from test.html to issue console.warn
for passing tests and console.error for failures
@johnjbarton
Copy link
Author

Ah, just noticed /test. I guess test.html is really demo.html ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant