Skip to content

Commit 23cc0e4

Browse files
committed
add keybind note
1 parent 3621640 commit 23cc0e4

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

comics.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,19 @@
1818
<div class="comicHolder">
1919
<img class="comic" src="./comics/000001.bmp" />
2020
</div>
21+
</div>
22+
23+
<div>
24+
<br/><br/><br/>
25+
<h3>Keybinds for your convenience:</h3>
26+
<ul>
27+
<li>[+]: Zoom In</li>
28+
<li>[-]: Zoom Out</li>
29+
<li>[&lt;-]: Previous</li>
30+
<li>[-&gt;]: Next</li>
31+
<li>[R]: Random</li>
32+
<li>[F]: First</li>
33+
<li>[Shift]+[&lt;-]: First</li>
34+
<li>[L]: Current</li>
35+
<li>[Shift]+[-&gt;]: Current</li>
2136
</div>

js/comics.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,20 @@ $(document).on("keydown", (e) => {
196196
if (shift) buttonFirst()
197197
else buttonPrevious()
198198
break
199+
case "f":
200+
case "F":
201+
buttonFirst()
202+
break
199203
case "ArrowRight":
200204
if (shift) buttonLast()
201205
else buttonNext()
202206
break
207+
case "l":
208+
case "L":
209+
case "c":
210+
case "C":
211+
buttonLast()
212+
break
203213
case "r":
204214
case "R":
205215
buttonRandom()

0 commit comments

Comments
 (0)