Opened 10 years ago
Closed 8 years ago
#1121 closed defect (fixed)
[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 (2)
comment:1 Changed 10 years ago by gogo
- Keywords patch added
- Summary changed from Disable tabs while editing to [PATCH] Disable tabs while editing
comment:2 Changed 8 years ago by gogo
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
This is committed in changeset:1201 (for Internet Explorer only).