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

プレイ中に他のキーイベントが呼ばれないようにする #741

Merged
merged 1 commit into from
Jun 21, 2020

Conversation

superkuppabros
Copy link
Contributor

@superkuppabros superkuppabros commented Jun 20, 2020

変更内容

プレイ中の画面で Event.preventDefault() を呼ぶようにしました。

変更理由

プレイ中にブラウザショートカットが発火したりするのを防ぐため。

その他コメント

一応動作確認は入れていますが、問題あれば取り下げてください。

@codeclimate
Copy link

codeclimate bot commented Jun 20, 2020

Code Climate has analyzed commit 560c1cd and detected 0 issues on this pull request.

View more on Code Climate.

@cwtickle
Copy link
Owner

Pull Requestありがとうございます!
Event.preventDefault()は知りませんでした。

派生影響を念のため確認しました。
強いて言えばリロード(F5)がブロックされるようですが、
プレイ画面以外では使用できますし、画面キャプチャはそのまま使えるので大きな影響は無さそうです。
※Windowキー/AppliキーはOSに近いキーのため、イベントキャンセルは効かない模様

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants