From 17bf618633f5561953fb40a6ccd1d8fb5cd06b64 Mon Sep 17 00:00:00 2001
From: Bob Mottram
Date: Wed, 25 May 2022 10:37:19 +0100
Subject: [PATCH] Revert "Set tab indexes for the left column"
This reverts commit b5a23447f8c4173677ed3576e1d0ce491d2cba1e.
---
webapp_column_left.py | 44 +++++++++++--------------------------------
1 file changed, 11 insertions(+), 33 deletions(-)
diff --git a/webapp_column_left.py b/webapp_column_left.py
index 08c3e4d87..a13f048a6 100644
--- a/webapp_column_left.py
+++ b/webapp_column_left.py
@@ -162,7 +162,7 @@ def get_left_column_content(base_dir: str, nickname: str, domain_full: str,
# show the edit icon
html_str += \
' ' + \
+ 'accesskey="' + access_keys['menuEdit'] + '">' + \
'' + \
+ 'accesskey="' + access_keys['menuThemeDesigner'] + '">' + \
'' + \
- '\n'
@@ -243,7 +240,6 @@ def get_left_column_content(base_dir: str, nickname: str, domain_full: str,
new_tab_str = ' target="_blank" rel="nofollow noopener noreferrer"'
if links_list:
html_str += '
\n'
links_file_contains_entries = True
elif line_str.startswith('=> '):
# gemini style link
@@ -315,15 +308,12 @@ def get_left_column_content(base_dir: str, nickname: str, domain_full: str,
'?showwarning=' not in link_str:
html_str += \
' ' + \
+ '"' + new_tab_str + '>' + \
line_str.strip() + '
\n'
else:
html_str += \
' ' + \
- line_str.strip() + '
\n'
- tab_ctr += 1
+ '">' + line_str.strip() + '\n'
links_file_contains_entries = True
else:
if line_str.startswith('#') or line_str.startswith('*'):
@@ -344,32 +334,20 @@ def get_left_column_content(base_dir: str, nickname: str, domain_full: str,
html_str += separator_str
html_str += \
'' + \
- translate['Shares Catalog'] + '
'
- tab_ctr += 1
+ '/catalog.csv">' + translate['Shares Catalog'] + ''
html_str += \
'' + \
+ access_keys['menuKeys'] + '">' + \
translate['Key Shortcuts'] + '
'
- tab_ctr += 1
html_str += \
- '' + \
+ '' + \
translate['About this Instance'] + '
'
- tab_ctr += 1
html_str += \
- '' + \
+ '' + \
translate['Terms of Service'] + '
'
- tab_ctr += 1
if links_file_contains_entries and not rss_icon_at_top:
- rss_icon_str = \
- rss_icon_str.replace(rss_icon_tab,
- 'tabindex="' + str(tab_ctr) + '"')
html_str += '
' + rss_icon_str + '
'
return html_str