Opened 17 years ago
Last modified 10 years ago
#7071 new enhancement
keyboard nav implementation
Reported by: | Markus.Staab | Owned by: | |
---|---|---|---|
Priority: | lowest | Milestone: | next-major-releases |
Component: | version control/browser | Version: | 0.11b2 |
Severity: | trivial | Keywords: | ie7 |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
why do you do such operations like
+ $(function() { + $('a,input,select,textarea,button') + .focus(function(event) { + ENABLE_KEY_NAV = false; + }) + .blur(function(event) { + ENABLE_KEY_NAV = true; + }); + });
see r6724
if you could do things easier using a :not selector with jquery
$("*:not(a,input,select,textarea,button,option)")
Another little thing: the option tags should also be ingored to be IE friendly
Attachments (0)
Change History (10)
comment:1 by , 17 years ago
comment:3 by , 17 years ago
Component: | general → version control/browser |
---|---|
Owner: | changed from | to
Severity: | normal → trivial |
I've not tested it, but I suspect that using $('*:not(...)')
would result in a huge list of objects, especially on directories with lots of entries (and those page are already expensive). Better to target directly the few elements you need, rather than complementary set.
comment:4 by , 17 years ago
Argh - You are right..
But this should do the trick:
$(document).keypress(function(event) { if(!$(event.target).is("a,input,button,textarea,select,option")) { } }
comment:5 by , 17 years ago
Independet of my implementation: the option tag is missing in the blacklist.. IE Triggers an option element where FF triggers an SELECT Element for DropDown-Selects..
comment:6 by , 16 years ago
Keywords: | needinfo added |
---|
Replying to Markus.Staab:
Another little thing: the option tags should also be ingored to be IE friendly
Could you provide a way to check this behavior? This would help me to test the fix.
comment:8 by , 15 years ago
Keywords: | ie7 added; needinfo removed |
---|---|
Milestone: | 0.12 → 0.12.1 |
Priority: | normal → low |
comment:9 by , 14 years ago
Milestone: | next-minor-0.12.x → next-major-0.1X |
---|---|
Priority: | low → lowest |
comment:10 by , 10 years ago
Owner: | removed |
---|
Please set the version field when you file in a ticket (and do not clear up the version field when you reopen an existing ticket, btw)