Ticket #1121 (new defect)
[PATCH] Disable tabs while editing
| Reported by: | guest | Owned by: | gogo |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Xinha Core | Version: | |
| Severity: | normal | Keywords: | patch |
| Cc: |
Description
Right now in Xinha, if a user presses the tab key while editing text in a Xinha editor inside a form, it tabs to the next item in the form, and yet also tabs inside the Xinha. Oftentimes, the next item in the form is a submit button, so as soon as the user presses space, the form then submits (quite often sending us half-finished documents). This only affects IE as Firefox already handles tabs correctly.
To fix this, simply add these two lines to XinhaCore?.js anywhere in the "Xinha.prototype._editorEvent = function(ev)" function
if (ev.keyCode == 9) // tab key
return false;
Change History
Note: See
TracTickets for help on using
tickets.
