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

Show URL of currently selected bookmark #16 #18

Open
wants to merge 30 commits into
base: develop
Choose a base branch
from

Conversation

LukasJanik55
Copy link

Hello, sending the PR.

Resolves #16

Copy link
Owner

@exhuma exhuma left a comment

Choose a reason for hiding this comment

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

The changes look good. Just a couple of microscopic changes, and in addition to the small comments about the code, I would retarget this to merge into develop instead of master. It seems I have forgotten to set develop as default branch target. I will do this immediately :)

src/components/sh-link.ts Show resolved Hide resolved
@@ -101,13 +101,24 @@ class Link extends LitElement {
};
}

onMouseEvent(text: string) {
Copy link
Owner

Choose a reason for hiding this comment

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

I would rename this to something else because it is not only happening on mouse events. Something like dispatchFocusChange or dispatchTitleChange.

@exhuma
Copy link
Owner

exhuma commented Nov 13, 2022

You know what, the changes are super small, I'll quickly fix those myself 😄

@exhuma
Copy link
Owner

exhuma commented Nov 13, 2022

I pushed the new branch issue-16-integration with a minor change. The change ensures that the "status bar" also shows up properly when using the code as a browser extension.

There's one issue though: The "focus" event is not firing when using the keyboard for navigation. To reproduce, focus the quicksearch text field and use the arrow-up/down keys.

Could you have a look at that please?

As a pointer, look at this piece which deals with the keyboard navigation:

this.linkListRef.value?.focusNextLink();

@exhuma
Copy link
Owner

exhuma commented Nov 13, 2022

I forgot to mention: The new branch is rebased onto develop. So if you could rebase your branch onto that one it would provide a cleaner merge later on.

@LukasJanik55 LukasJanik55 changed the base branch from master to develop November 22, 2022 16:19
@LukasJanik55
Copy link
Author

I am not sure if i did everything right, but i've:

  1. changed the PR target branch to development
  2. pulled the changes
  3. added functionality for keyboard controls
  4. pushed everything into my branch

It should be working now correctly under all conditions (mouse hover, tab focus and keyboard control). If you find anything wrong or a need of change, let me know.

PS: sorry again for not responding sooner, i'll be here daily if you need any more changes

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.

Show URL of currently selected bookmark
2 participants