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

adding/removing KEY_EVENTS MODIFIED_KEY_EVENTS is tricky #7

Open
stefanpenner opened this issue Jan 8, 2015 · 3 comments
Open

adding/removing KEY_EVENTS MODIFIED_KEY_EVENTS is tricky #7

stefanpenner opened this issue Jan 8, 2015 · 3 comments

Comments

@stefanpenner
Copy link
Contributor

@lukemelia any ideas re: config?

@SirZach
Copy link

SirZach commented Mar 23, 2015

is this issue meant to represent adding to the MODIFIED_KEY_EVENTS hash? because I would like to do that :)

@lukemelia
Copy link
Contributor

@SirZach do you want to propose an API?

@SirZach
Copy link

SirZach commented Mar 24, 2015

I'd like to somehow modify the KEY_EVENT hashes in a setupController somewhere, preferably application_route, and be able to modify it by doing something like:

this.get('KeyResponderService').addKeyCode('unmodified', '32', '<action_name>');
//OR
this.get('KeyResponderService').addKeyCode('modified', '32', '<action_name_triggered_by_shift_key>');

This could allow me to have users program their own key codes for actions, add actions for additional key codes that are not set up by default, or modify action names that are associated to key codes.

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

No branches or pull requests

3 participants