Skip to content

(feat) Add home/end key support#179

Merged
feimosi merged 1 commit intofeimosi:devfrom
BartDelrue:feature/home-end-key
Sep 16, 2018
Merged

(feat) Add home/end key support#179
feimosi merged 1 commit intofeimosi:devfrom
BartDelrue:feature/home-end-key

Conversation

@BartDelrue
Copy link
Copy Markdown
Contributor

@BartDelrue BartDelrue commented May 19, 2018

Pressing the home or end key takes you to the first or last image of the opened gallery.

Issue #180

Copy link
Copy Markdown

@Jeroen005 Jeroen005 left a comment

Choose a reason for hiding this comment

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

looking good :)

@BartDelrue BartDelrue mentioned this pull request Jul 2, 2018
@meirege
Copy link
Copy Markdown

meirege commented Jul 6, 2018

We could really use this for an upcoming project at our firm. 👍

Comment thread src/baguetteBox.js

// Return false at the left end of the gallery
function showFirstImage(event) {
if (event) {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Do we need the if? Is there a case where event is undefined?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Currently no.
I included it in case you'd want to expose this function later on, cfr shownext etc.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Let me know if you want it gone ;)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Could this be merged please? We could really use this feature...

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Done, sorry for the delay

@feimosi feimosi merged commit 8d038e3 into feimosi:dev Sep 16, 2018
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.

4 participants