Ticket #1121 (new defect)

Opened 1 year ago

Last modified 4 months ago

[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

Changed 4 months ago by gogo

  • keywords patch added
  • summary changed from Disable tabs while editing to [PATCH] Disable tabs while editing
Note: See TracTickets for help on using tickets.