-
Notifications
You must be signed in to change notification settings - Fork 311
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
Refactor detection logic of keyboard shortcuts in ChatPage
#476
Refactor detection logic of keyboard shortcuts in ChatPage
#476
Conversation
@k70suK3-k06a7ash1 Cmd-Shift-O でのページ遷移について、意図しないと思われる挙動を確認したので、その修正となります。 本来は Cmd+Shift+O を同時に押した時点で遷移するのが期待動作だと思われますが、チャット入力中のキー入力シーケンスで Cmd と Shift と O の押下がそれぞれ独立して判定され、例えば以下のような入力をすると、「で」を入力するために日本語入力に切り替えようとした瞬間にページ遷移が発火します。
また、カスタムボット利用時は、遷移先を |
@Yukinobu-Mine |
7773cc6
to
daca168
Compare
@k70suK3-k06a7ash1 もう少し検討を進めたところ、以下のように KeyboardEvent の shiftKey や metaKey といったプロパティを使うことで
上記の判定ロジックについて、何か問題があればご教示いただけますと幸いです 🙇♂️ |
@Yukinobu-Mine |
ChatPage
@Yukinobu-Mine |
Issue #, if available:
Closes #368
Description of changes:
Cmd+Shift+O
inChatPage
.Shift+ESC
fromTextarea
toChatPage
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.