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

Bug:After using Command+A, document.activeElement is lost. #8810

Open
zhe-he opened this issue Nov 27, 2024 · 1 comment
Open

Bug:After using Command+A, document.activeElement is lost. #8810

zhe-he opened this issue Nov 27, 2024 · 1 comment

Comments

@zhe-he
Copy link
Contributor

zhe-he commented Nov 27, 2024

When I select an entire line of text or all the text, I cannot replace the content by typing any letter; I can only delete the selected content. That's when I discovered this issue.

Here is the video demonstrating the issue.

2024-11-27.14.55.49.mov
@zhe-he
Copy link
Contributor Author

zhe-he commented Nov 27, 2024

Because I have globally bound the keydown event elsewhere, I skip executing the global keydown if text input is active. I determine this using document.activeElement. However, after using Alt+A to select all, the focus is lost, causing the global keydown to be executed.

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

No branches or pull requests

1 participant