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 the issue of cursor movement using arrow keys in the search bar for links #104

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

flakeed
Copy link
Member

@flakeed flakeed commented Apr 14, 2023

No description provided.

@agsagds
Copy link
Member

agsagds commented Apr 16, 2023

@Konard Konard linked an issue May 6, 2023 that may be closed by this pull request
Comment on lines +228 to +231
const searchInput = document.activeElement;
if (searchInput instanceof HTMLInputElement || searchInput instanceof HTMLTextAreaElement) {
return;
}
Copy link
Member

Choose a reason for hiding this comment

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

searchInput should be renamed to activeElement, because it can be not only searchInput

Copy link
Member

Choose a reason for hiding this comment

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

We not should use activeElement from document.

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.

ArrowLeft && ArrowRight don't move cursor in link search text
3 participants