Inconsistent tabbing behavior

Having trouble installing Oxygen? Got a bug to report? Post it all here.
ghudson
Posts: 12
Joined: Tue Feb 08, 2011 11:40 pm

Inconsistent tabbing behavior

Post by ghudson »

We have a custom schema with with several document types based on parent elements in the schema. In Author mode, we require the default tabbing behavior, which is to have the cursor move to the beginning of the next element. In some sections of a document it works correctly, but in many sections the tab creates 4 spaces, which is not what we want.

Shift+Tab always works correctly.

Any ideas what is causing the tabbing to act this way? We have not overridden the default tab action.

Thanks!
Radu
Posts: 9448
Joined: Fri Jul 09, 2004 5:18 pm

Re: Inconsistent tabbing behavior

Post by Radu »

Hi,

Those elements in which the tab inserts the spaces are probably elements which have been declared as space-preserve either in the XML or in the associated schema or in the CSS used to render the XML in the Author page.

The idea when being in a space preserve element and pressing TAB would be that the element is maybe used to store a fragment of code and the user wants to style that content by inserting additional tabs or spaces.

But this makes the behavior inconsistent and this is not the first complaint so we'll try to rectify the behavior in a future version.
I'll update the forum thread when this happens.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply