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

Enhance keyboard util. #8571

Merged
merged 1 commit into from
Apr 15, 2016
Merged

Conversation

Owlbertz
Copy link
Contributor

Enhanced keyboard util by adding a parameter that is passed to the handled function based on the evaluation of the function that was handled.
It is now easier to only do certain actions (e.g. calling preventDefaul()) in the handled handler by letting the other function (e.g. next, up, ...) return some value, which is directly passed into handled as the first parameter.
I also adjusted the calls to the keyboard util for some plugins to fix issues and prevent bad behavior.

Since this rework fixes some bugs (#8535, #8569) I will target the develop branch.

Enhanced keyboard util by adding a parameter that is passed to the `handled` function based on the evaluation of the function that was handled.
It is now easier to only do certain actions (e.g. calling `preventDefaul()`) in the `handled` handler by letting the other function (e.g. `next`, `up`, ...) return some value, which is directly passed into `handled` as the first parameter.
I also adjusted the calls to the keyboard util for some plugins to fix issues and prevent bad behavior.
@kball
Copy link
Contributor

kball commented Apr 12, 2016

This looks good, I'll try to find some time to test it out in the next day or two

@kball kball self-assigned this Apr 12, 2016
@kball
Copy link
Contributor

kball commented Apr 15, 2016

Checks out, looks good

@kball kball merged commit 5a1450d into foundation:develop Apr 15, 2016
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.

2 participants