Update subreddit.html

Add keyboard shortcuts to PREV and NEXT links using the accesskey global attribute. Underlined letters indicate the key. NB: different browsers use different keystroke combinations to activate access key shortcuts. For example, Firefox on Mac uses ⌃⌥ + accesskey.
This commit is contained in:
Jonathan Sims 2022-03-26 16:39:40 -04:00 committed by GitHub
parent ed11135af8
commit 3ce0db5b07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -65,11 +65,11 @@
<footer>
{% if !ends.0.is_empty() %}
<a href="?sort={{ sort.0 }}&t={{ sort.1 }}&before={{ ends.0 }}">PREV</a>
<a href="?sort={{ sort.0 }}&t={{ sort.1 }}&before={{ ends.0 }}" accesskey="r">P<span style="text-decoration: underline;">R</span>EV</a>
{% endif %}
{% if !ends.1.is_empty() %}
<a href="?sort={{ sort.0 }}&t={{ sort.1 }}&after={{ ends.1 }}">NEXT</a>
<a href="?sort={{ sort.0 }}&t={{ sort.1 }}&after={{ ends.1 }}" accesskey="x">NE<span style="text-decoration: underline;">X</span>T</a>
{% endif %}
</footer>
</div>