Maintain form field focus through ahah action
antgiant - January 21, 2009 - 18:41
| Project: | AHAH helper |
| Version: | 6.x-2.0 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
| Issue tags: | ahah focus javascript patch |
Jump to:
Description
Performing an ahah action steals focus. This can be especially confusing if you are navigating the form via keyboard. Ideally, focus would be restored after the action if possible.
I have attached a patch that I believe does this. I have tested it in IE, firefox (PC & MAC), Chrome & Safari.
| Attachment | Size |
|---|---|
| focus.patch | 1.06 KB |

#1
I'll review this one soon.