http://www.perlmonks.org?node_id=700681


in reply to Re^2: Better keyboard-driven navigation, any? - yes...
in thread Better keyboard-driven navigation, any? - yes...

I personally believe that since shmem's script has been here publicized, I'd better also publicly copy here my first draft of review on his code. This has taken some time due to my own lazyness and thus may not be completely consistent over time, but I'm confident that it mostly is. I'm copying it here out of my own scratchpad.


I've tried the beast: all in all, I already like it!

Key driven navigation must be turned off whenever a textarea is entered, or a text field. Sadly, there's no uniform id for composition textareas or title textboxes...

Is this the case? If it were, then indeed it would be extremely annoying. But then I've tried e.g. to go to the node consideration text field, both with the hot key and scrolling with the mouse. Then I did not consider the node and move out of it say, with a Tab. And I could start using the keybindings again - seamlessly. Or did I misunderstood anything?

To disable, enter document.onkeypress = ''; in a suitable javascript console (e.g.firebug). Oh.. that reminds me... Firefox only, I guess. Haven't checked IE yet.

I believe that the javascript: pseudo-protocol may do. Again, FF has it: don't know 'bout IE, let alone other browsers.

all sections:
  • p - go to posts / replies section
  • [...]
main section:
  • + - set ++ vote for current post
  • [...]

I'm giving you my impression in terms of UI:

posts:
posts and nodelets:
  • j - down one post/nodelet
  • [...]
posts:
  • r - set focus on reply link
  • [...]
--
If you can't understand the incipit, then please check the IPB Campaign.