From 1be4d32f99f777be7308b2fa81b8d099dcd6f4ab Mon Sep 17 00:00:00 2001 From: luccioman Date: Tue, 23 May 2017 07:25:40 +0200 Subject: [PATCH] Restored search page default behavior for Tab, Page Up and Down keys Replaced by shortcuts defined by the HTML "accesskey" attribute which has the advantage to be advertised by screen readers when focusing the corresponding buttons, contrary to custom JavasScript key handlers. Now With Firefox : - "Alt + Shift + n" for next page - "Alt + Shift + p" for previous page Following ARIA recommendation : "keyboard shortcuts enhance, not replace, standard keyboard access." ( see https://www.w3.org/TR/wai-aria-practices/#kbd_shortcuts_behavior_design) Fix for mantis 711 (http://mantis.tokeek.de/view.php?id=711) --- htroot/js/yacysearch.js | 4 ++-- htroot/yacysearch.html | 19 ------------------- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/htroot/js/yacysearch.js b/htroot/js/yacysearch.js index 6f91c3eb9..06314f7a7 100644 --- a/htroot/js/yacysearch.js +++ b/htroot/js/yacysearch.js @@ -51,7 +51,7 @@ function renderPaginationButtons(offset, itemscount, itemsperpage, totalcount, l if (thispage == 0) { resnav += "
  • «
  • "; } else { - resnav += "
  • «
  • "; } @@ -73,7 +73,7 @@ function renderPaginationButtons(offset, itemscount, itemsperpage, totalcount, l if ((localQuery && thispage >= (totalPagesNb - 1)) || (!localQuery && thispage >= (numberofpages - 1))) { resnav += "
  • »
  • "; } else { - resnav += "
  • »"; } diff --git a/htroot/yacysearch.html b/htroot/yacysearch.html index 150e50519..ae3606708 100644 --- a/htroot/yacysearch.html +++ b/htroot/yacysearch.html @@ -11,25 +11,6 @@ - -