From ef72fdac795dca8e73885e81f7b7f254f93df72c Mon Sep 17 00:00:00 2001 From: orbiter Date: Wed, 14 Sep 2011 09:15:09 +0000 Subject: [PATCH] added keyboard-based search result page navigation: - page-up or tab switches to next search result page - page-down switches to previous search result page git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7950 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/yacysearch.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/htroot/yacysearch.html b/htroot/yacysearch.html index d22f92157..7911f87b9 100644 --- a/htroot/yacysearch.html +++ b/htroot/yacysearch.html @@ -25,17 +25,18 @@ evt = (evt) ? evt : ((window.event) ? event : null); if (evt) { switch (evt.keyCode) { - case 37: - window.location.href = document.getElementById("prevpage").href; - break; - case 39: + case 9: + case 33: window.location.href = document.getElementById("nextpage").href; break; + case 34: + window.location.href = document.getElementById("prevpage").href; + break; case 40: } } } - //document.onkeydown = handleArrowKeys; + document.onkeydown = handleArrowKeys; //]]>