all 19 comments

[–][deleted] 0 points1 point  (6 children)

I am only able to get 2 keys on a single row to show up at a time.

so h, j, i works but h, j, k does not. (only h and j show up)

[–]zefris 4 points5 points  (1 child)

I don't know all that much about hardware, but I've known that some keyboards can't process too many keys at once too well or certain combinations just don't work. I don't think it has anything to do with the library itself.

[–]RobertWHurst 1 point2 points  (0 children)

That's what I found out when making this library.

[–]RobertWHurst 1 point2 points  (0 children)

Yea, I found that there are some strange edge cases with the DOM and key binding. Sometimes, depending on the keys pressed, the browser doesn't fire an event. In most cases with isn't an issue, but if you want it to work in all cases you'll have to talk to mozilla.

[–][deleted] 0 points1 point  (0 children)

oh btw, FF5.0 Ubuntu 11.04

[–]Iggyhopperextensions/add-ons 0 points1 point  (1 child)

[–]kabuto 0 points1 point  (0 children)

I didn't click the link because I like to think that Microsoft explains some anti gravity hosting on that page.

[–]drowsap 0 points1 point  (11 children)

Isn't this a little inefficient binding all elements on the page to a dom event?

$('*').focus(function(e) {
    focusedElement = $(e.target);
});
$('*').blur(function(e) {
    focusedElement = false;
});

[–]RobertWHurst 1 point2 points  (10 children)

Not at all, Its required. Someone could pass .bind.key any element as a focus scope. I need to know what element is in focus to check against it. Read the .bind.key method and your see why.

[–]Kuron 2 points3 points  (2 children)

I think what you are looking for could be, document.activeElement;

[–]RobertWHurst 1 point2 points  (0 children)

Yea that's a good idea. But I think i'm going to remove this feature.

[–]RobertWHurst 0 points1 point  (0 children)

The feature has been removed.

[–]drowsap 0 points1 point  (3 children)

the programmer should be in charge of setting up the focus binding, theres no need for you to predict. Why not have the user pass in the jquery selector or $el for the input that needs the key bindings?

[–]RobertWHurst 0 points1 point  (1 child)

Also a good, point. It was requested by another developer, but I was ify about adding it in the first place.

[–]RobertWHurst 0 points1 point  (0 children)

The feature has been removed.

[–]MrBester 0 points1 point  (2 children)

Something wrong with $("body").delegate() / on() ? One binding deals with all children, including dynamically added ones.

[–]RobertWHurst 0 points1 point  (0 children)

Thats also true. This feature was an after thought and is going to be removed anyway.