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

Is there anyway to check keyboard states, i.e. up arrow is currently pressed. #15

Closed
AlexanderPeters opened this issue Apr 22, 2019 · 4 comments
Labels
enhancement New feature or request

Comments

@AlexanderPeters
Copy link
Contributor

-Self-explanatory, would like to add a listener of some kind if possible.

@C451
Copy link
Collaborator

C451 commented Apr 23, 2019

For now you can listen to the keyboard from your App.vue and use Vue event bus to pass info to your overlays. I'll think about adding it as an API.

Or even easier: you can extend an overlay itself. It's very flexible.

@C451 C451 added the enhancement New feature or request label Apr 23, 2019
@DorothyRMartin
Copy link

I think pushing the 'right arrow' for moving the canvas 1 candle to the right is good.
Maybe shift+right arrow should move it 10 candles to the right

@C451
Copy link
Collaborator

C451 commented Jun 18, 2019

I think pushing the 'right arrow' for moving the canvas 1 candle to the right is good.
Maybe shift+right arrow should move it 10 candles to the right

I assume that this particular behavior should be implemented on the application side (imagine that someone is already using arrows, and this will come as a surprise). However, It will be useful to be able to access keyboard events through the overlay API.

I'm still thinking how to implement this in the possible best way.

@C451
Copy link
Collaborator

C451 commented Jul 13, 2019

ead0e8a

@C451 C451 closed this as completed Jul 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants