Profile screen access key

main
Bob Mottram 2022-05-25 14:50:43 +01:00
parent dcf059db0b
commit aeee56ae38
2 changed files with 4 additions and 3 deletions

View File

@ -422,7 +422,7 @@ def _get_profile_header(base_dir: str, http_prefix: str,
'\n\n <figure class="profileHeader">\n' + \
' <a href="/users/' + \
nickname + '/' + default_timeline + '" title="' + \
translate['Switch to timeline view'] + '">\n' + \
translate['Switch to timeline view'] + '" tabindex="1">\n' + \
' <img class="profileBackground" ' + \
'alt="" ' + \
'src="/users/' + nickname + '/image_' + theme + '.png" /></a>\n' + \
@ -526,7 +526,7 @@ def _get_profile_header_after_search(base_dir: str,
' <a href="/users/' + \
nickname + '/' + default_timeline + '" title="' + \
translate['Switch to timeline view'] + '" ' + \
'accesskey="' + access_keys['menuTimeline'] + '">\n' + \
'accesskey="' + access_keys['menuTimeline'] + '" tabindex="1">\n' + \
' <img class="profileBackground" ' + \
'alt="" ' + \
'src="' + image_url + '" /></a>\n' + \

View File

@ -753,7 +753,8 @@ def html_timeline(css_cache: {}, default_timeline: str,
'<a href="/users/' + nickname + '" title="' + \
translate['Switch to profile view'] + '" alt="' + \
translate['Switch to profile view'] + '" ' + \
'aria-flowto="containerHeader" tabindex="1">\n'
'aria-flowto="containerHeader" tabindex="1" accesskey="' + \
access_keys['menuProfile'] + '">\n'
tl_str += '<img loading="lazy" decoding="async" ' + \
'class="timeline-banner" alt="" ' + \
'src="' + users_path + '/' + banner_file + '" /></a>\n' + \