From e33daaa978ef0e291f15a939b7095606acbe4f81 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 27 Feb 2013 16:53:53 +0400 Subject: [PATCH] added keyboard article navigation... Signed-off-by: Alex A. Naanou --- index.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 0845ad9..5776303 100755 --- a/index.html +++ b/index.html @@ -94,8 +94,14 @@ $(document).ready(function(){ 36: firstPage, // Home 35: lastPage, // End - 37: prevPage, // Left - 39: nextPage, // Right + 37: { + 'default': prevPage, // Left + 'ctrl': prevArticle, // ctrl-Left + }, + 39: { + 'default': nextPage, // Right + 'ctrl': nextArticle, // ctrl-Right + }, 32: { 'default': nextPage, // Space 'shift': prevPage // shift-Space