diff --git a/daemon.py b/daemon.py index 7437feb4f..193ea3a8f 100644 --- a/daemon.py +++ b/daemon.py @@ -11758,6 +11758,15 @@ class PubServer(BaseHTTPRequestHandler): '/search?' in self.path: if '?' in self.path: self.path = self.path.split('?')[0] + + nickname = self.path.split('/users/')[1] + if '/' in nickname: + nickname = nickname.split('/')[0] + + accessKeys = self.server.accessKeys + if self.server.keyShortcuts.get(nickname): + accessKeys = self.server.keyShortcuts[nickname] + # show the search screen msg = htmlSearch(self.server.cssCache, self.server.translate, @@ -11765,7 +11774,8 @@ class PubServer(BaseHTTPRequestHandler): self.server.domain, self.server.defaultTimeline, self.server.themeName, - self.server.textModeBanner).encode('utf-8') + self.server.textModeBanner, + accessKeys).encode('utf-8') msglen = len(msg) self._set_headers('text/html', msglen, cookie, callingDomain) self._write(msg) @@ -14647,6 +14657,7 @@ def runDaemon(brochMode: bool, # key shortcuts SHIFT + ALT + [key] httpd.accessKeys = { + 'submitButton': 'y', 'menuTimeline': 't', 'menuEdit': 'e', 'menuProfile': 'p', diff --git a/translations/ar.json b/translations/ar.json index 527b0608f..5eb4c3dff 100644 --- a/translations/ar.json +++ b/translations/ar.json @@ -426,5 +426,6 @@ "menuRoles": "أدوار", "menuSkills": "مهارات", "menuLogout": "تسجيل خروج", - "menuKeys": "الاختصارات الرئيسية" + "menuKeys": "الاختصارات الرئيسية", + "submitButton": "زر الإرسال" } diff --git a/translations/ca.json b/translations/ca.json index 619b96bb7..86658f70c 100644 --- a/translations/ca.json +++ b/translations/ca.json @@ -426,5 +426,6 @@ "menuRoles": "Rols", "menuSkills": "Habilitats", "menuLogout": "Tancar sessió", - "menuKeys": "Dreceres clau" + "menuKeys": "Dreceres clau", + "submitButton": "Envia el botó" } diff --git a/translations/cy.json b/translations/cy.json index e0c3f167e..40b88e4e9 100644 --- a/translations/cy.json +++ b/translations/cy.json @@ -426,5 +426,6 @@ "menuRoles": "Rolau", "menuSkills": "Medrau", "menuLogout": "Allgofnodi", - "menuKeys": "Llwybrau byr allweddol" + "menuKeys": "Llwybrau byr allweddol", + "submitButton": "Cyflwyno botwm" } diff --git a/translations/de.json b/translations/de.json index 70427d027..370a2a200 100644 --- a/translations/de.json +++ b/translations/de.json @@ -426,5 +426,6 @@ "menuRoles": "Rollen", "menuSkills": "Kompetenzen", "menuLogout": "Ausloggen", - "menuKeys": "Schlüsselverknüpfungen" + "menuKeys": "Schlüsselverknüpfungen", + "submitButton": "Button einreichen" } diff --git a/translations/en.json b/translations/en.json index c9ef9a103..a08b8fe22 100644 --- a/translations/en.json +++ b/translations/en.json @@ -426,5 +426,6 @@ "menuRoles": "Roles", "menuSkills": "Skills", "menuLogout": "Logout", - "menuKeys": "Key Shortcuts" + "menuKeys": "Key Shortcuts", + "submitButton": "Submit button" } diff --git a/translations/es.json b/translations/es.json index 29068b653..f2a40a394 100644 --- a/translations/es.json +++ b/translations/es.json @@ -426,5 +426,6 @@ "menuRoles": "Roles", "menuSkills": "Habilidades", "menuLogout": "Cerrar sesión", - "menuKeys": "Atajos clave" + "menuKeys": "Atajos clave", + "submitButton": "Botón de enviar" } diff --git a/translations/fr.json b/translations/fr.json index 42e0c1a4b..396c1e95f 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -426,5 +426,6 @@ "menuRoles": "Les rôles", "menuSkills": "Compétences", "menuLogout": "Se déconnecter", - "menuKeys": "Raccourcis clés" + "menuKeys": "Raccourcis clés", + "submitButton": "Bouton de soumission" } diff --git a/translations/ga.json b/translations/ga.json index 82ddab85a..6d2be022f 100644 --- a/translations/ga.json +++ b/translations/ga.json @@ -426,5 +426,6 @@ "menuRoles": "Róil", "menuSkills": "Scileanna", "menuLogout": "Logáil Amach", - "menuKeys": "Príomh-aicearraí" + "menuKeys": "Príomh-aicearraí", + "submitButton": "Cuir an cnaipe isteach" } diff --git a/translations/hi.json b/translations/hi.json index 853b74725..5f4880867 100644 --- a/translations/hi.json +++ b/translations/hi.json @@ -426,5 +426,6 @@ "menuRoles": "भूमिकाएँ", "menuSkills": "कौशल", "menuLogout": "लॉग आउट", - "menuKeys": "कुंजी शॉर्टकट" + "menuKeys": "कुंजी शॉर्टकट", + "submitButton": "जमा करने वाला बटन" } diff --git a/translations/it.json b/translations/it.json index b7bee1906..0b055fed6 100644 --- a/translations/it.json +++ b/translations/it.json @@ -426,5 +426,6 @@ "menuRoles": "Ruoli", "menuSkills": "Competenze", "menuLogout": "Disconnettersi", - "menuKeys": "Scorciatoie chiave" + "menuKeys": "Scorciatoie chiave", + "submitButton": "Invia il pulsante" } diff --git a/translations/ja.json b/translations/ja.json index 50273899d..359d700a9 100644 --- a/translations/ja.json +++ b/translations/ja.json @@ -426,5 +426,6 @@ "menuRoles": "役割", "menuSkills": "スキル", "menuLogout": "ログアウト", - "menuKeys": "キーショートカット" + "menuKeys": "キーショートカット", + "submitButton": "送信ボタン" } diff --git a/translations/ku.json b/translations/ku.json index 2595c9dea..88dae41be 100644 --- a/translations/ku.json +++ b/translations/ku.json @@ -426,5 +426,6 @@ "menuRoles": "Roles", "menuSkills": "Şarezayên", "menuLogout": "Derkeve", - "menuKeys": "Kurteyên Key" + "menuKeys": "Kurteyên Key", + "submitButton": "Bişkojka bişînin" } diff --git a/translations/oc.json b/translations/oc.json index adc35439b..d47e16d11 100644 --- a/translations/oc.json +++ b/translations/oc.json @@ -422,5 +422,6 @@ "menuRoles": "Roles", "menuSkills": "Skills", "menuLogout": "Logout", - "menuKeys": "Key Shortcuts" + "menuKeys": "Key Shortcuts", + "submitButton": "Submit button" } diff --git a/translations/pt.json b/translations/pt.json index 7e58dc8c5..1fb1437bf 100644 --- a/translations/pt.json +++ b/translations/pt.json @@ -426,5 +426,6 @@ "menuRoles": "Papéis", "menuSkills": "Habilidades", "menuLogout": "Sair", - "menuKeys": "Atalhos-chave" + "menuKeys": "Atalhos-chave", + "submitButton": "Botão de envio" } diff --git a/translations/ru.json b/translations/ru.json index 6e6e4102a..0d553527e 100644 --- a/translations/ru.json +++ b/translations/ru.json @@ -426,5 +426,6 @@ "menuRoles": "Роли", "menuSkills": "Навыки и умения", "menuLogout": "Выйти", - "menuKeys": "Клавичные ярлыки" + "menuKeys": "Клавичные ярлыки", + "submitButton": "Отправить кнопку" } diff --git a/translations/zh.json b/translations/zh.json index 38e8ce523..348b82b10 100644 --- a/translations/zh.json +++ b/translations/zh.json @@ -426,5 +426,6 @@ "menuRoles": "角色", "menuSkills": "技能", "menuLogout": "登出", - "menuKeys": "关键捷径" + "menuKeys": "关键捷径", + "submitButton": "提交按钮" } diff --git a/webapp_accesskeys.py b/webapp_accesskeys.py index 647cfbeb8..fa722f298 100644 --- a/webapp_accesskeys.py +++ b/webapp_accesskeys.py @@ -63,12 +63,15 @@ def htmlAccessKeys(cssCache: {}, baseDir: str, accessKeysForm += '