On 11/13/05, Mike Schwab
<mike.schwab-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> Gmail has keystrokes now and I''m kind of jealous. What javascript
> library are they using? Any tips or leads on helper functions?
>
> -Mike
Mike,
I imagine they''re using a custom onkeypress event handler to do their
keybinding mojo. I don''t know what they''re doing, but I know
how I''d
approach the problem:
1) A body event handler (<body
onkeypress=''useViKeyBindings();''>)
2) Let useViKeyBindings check for keypress events, check the keycodes, and
do something useful when it finds one I like.
I could be completely off my rocker, but that''s how I''d start.
Of course,
where I end up tends to be pretty far from where I start, so you might to
start somewhere else. Like San Francisco or something.
--
Mando
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails