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

Fix issue #97 Cannot type question mark. #98

Merged
merged 1 commit into from
Feb 27, 2019

Conversation

HuiSF
Copy link

@HuiSF HuiSF commented Feb 26, 2019

Chrome devtool opens settings panel by pressing ? key. (reference).

When typing question mark in Scratch JS panel this keydown event would be captured by parent level panels. Therefore, the devtool settings panel opens instead of typing in question mark character.

To fix issue #97 , I added a new keydown event listener with the third parameter as true, to add the event handler in event capturing phase, and further to stop the event bubbling to the parent panel.

@richgilbank
Copy link
Owner

Right on, thanks!

@richgilbank richgilbank merged commit 834cbfd into richgilbank:master Feb 27, 2019
@HuiSF HuiSF deleted the fix-cannot-type-question-mark branch April 7, 2022 00:28
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