Opened 13 years ago

Closed 11 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


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 12 years ago by gogo

  • Keywords patch added
  • Summary changed from Disable tabs while editing to [PATCH] Disable tabs while editing

comment:2 Changed 11 years ago by gogo

  • Resolution set to fixed
  • Status changed from new to closed

This is committed in changeset:1201 (for Internet Explorer only).

Note: See TracTickets for help on using tickets.