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

prevent default for shortkeys #265

Merged
merged 3 commits into from
Mar 29, 2020
Merged

prevent default for shortkeys #265

merged 3 commits into from
Mar 29, 2020

Conversation

mgautam98
Copy link
Contributor

@mgautam98 mgautam98 commented Mar 29, 2020

The shortkeys work fine for nanoborb. But for the browsers it doesn't work. The browser shortcut keys overrides our shortcuts.

e.g. ctrl + r is for refresh in chrome. So Instead of measurement the page refreshes.

Copy link
Member

@birm birm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we only want to prevent default where one of the relevant keys has been pressed.

@mgautam98
Copy link
Contributor Author

Okay. I will make the changes.

@mgautam98
Copy link
Contributor Author

@birm made the requested changes

Copy link
Member

@birm birm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@birm birm merged commit f99d790 into camicroscope:develop Mar 29, 2020
@birm birm mentioned this pull request Mar 29, 2020
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