I think I get carried away with few things. While I was working on detecting Arrow keys I wrote a simple jQuery plugin for Page navigation. It could be useful perhaps. More needed to be done like preserving state and ajaxifying it.
While still on this note I wrote a WordPress plugin putting my jQuery plugin to its core.
WordPress plugin is called “jcwp left right key navigation“
Here are couple of screenshots as shown below
So the Idea of this plugin is that when someone press right arrow key one then a title of next post is picked and shown automatically and when a user press the right arrow key again (twice in a row) then user is taken to a next post.
Same applies to the left key pressing. When left arrow key is pressed once then the previous post title is shown to the user and when left arrow key is pressed twice in a row then user is taken to the previous post.
To hide the preview press any other key or ESC key.
- Disable the plugin function without uninstalling it.
- You can put your own text for Next and Previous labels.
- You can specify if the next and previous post should be picked from same category.
- You can pick up a theme. RIght now only theme that is supported is “grey”
Where to get it from
As you know that because of lack of donations and very heavy bandwidth to some of my stuff I have stopped hosting plugin files on my blog, the other reason was that it was maintenance nightmare when I issue an update to my plugins instead I host them permanently with wordpress now and you can get it from wordpress from the url below
Or simple search for “jcwp“
1. Upload unzipped plugin directory to the /wp-content/plugins/ directory
2. Activate the plugin through the ‘Plugins’ menu in WordPress
3. Use the Plugin Options on left menu under Settings > JCWP Left Right key.
Just search for the plugin title and click install. WordPress takes care of extracting and installing it.
This is important bit. I generally fund my own stuff only except my Tea and Coke. So please consider donations! I don’t get many because generally people skip this part. 🙂 but its always worth asking.
Please make sure that you understand that this plugin will work properly on any of the listed browsers below
- Chrome >= 11
- FF >= 3.5
- Safari >= 4
- Opera >= 11
- IE >= 9
I hope that you will like this plugin and if you do please consider donation because every penny helps me keeping my server up.
If you have any thing to add please leave you comments.
Please note: This plugin is inspired from a few example I found on various sites.