Skip to content

Commit

Permalink
Merge pull request #21 from theohbrothers/enhancement/gallery-change-…
Browse files Browse the repository at this point in the history
…menu-order-for-pin-to-be-on-the-right

Enhancement (gallery): Change menu order for pin to be on the right
  • Loading branch information
leojonathanoh authored Aug 27, 2021
2 parents 6f88173 + 7de010e commit a943cf3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ Keyboard shortcuts:
| `-` | Mode: Tile smaller
| `=` | Mode: Tile larger
| `L` | Mode: Show / Hide label
| `S` | Mode: Toggle sort mode
| `P` | Menu: Pin / Unpin menu
| `S` | Menu: Toggle sort mode
Binary file modified doc/assets/gallery.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions webize
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ if [ -n "$GALLERY" ]; then
<tilesmaller title="Tile smaller (-)" alt="Tile smaller (-)">🐜</tilesmaller>
<tilelarger title="Tile larger (+)" alt="Tile larger (=)">🦕</tilelarger>
<imagelabeller title="Show / Hide label (L)" alt="Show / Hide label (L)">🏷</imagelabeller>
<pin title="Pin / Unpin menu (P)" alt="Pin / Unpin menu (P)">📌</pin>
<sort title="Toggle sort mode" alt="Toggle sort mode"></sort><!-- innerHTML will be injected on DOMContentLoaded -->
<pin title="Pin / Unpin menu (P)" alt="Pin / Unpin menu (P)">📌</pin>
</menu>
<content>
<gallery></gallery>
Expand Down Expand Up @@ -336,14 +336,14 @@ cat - >> "$indexHtm" <<'EOF'
if (keyCode === 76) {
toggleLabelHandler();
}
// p key
if (keyCode === 80) {
togglePinHandler();
}
// s key
if (keyCode === 83) {
toggleSortMode();
}
// p key
if (keyCode === 80) {
togglePinHandler();
}
// console.log(keyCode);
};
Expand Down Expand Up @@ -548,9 +548,9 @@ cat - >> "$indexHtm" <<'EOF'
break;
case "tilelarger":
if (modePrev === "tilesmaller" || modePrev === "tilelarger") {
tilesmaller(preserve);
tilelarger(preserve);
}else {
tilesmaller(true);
tilelarger(true);
}
break;
default:
Expand Down

0 comments on commit a943cf3

Please sign in to comment.