Hi,
Having a TextItem with redrawOnChange, each time the field is changed it is redrawn. As part of it, focus is set back to this item but as consequence, selection and cursor position is changed:
*In first case (selectOnFocus true), after doing any modification the text in the field is selected, if i don't realize it and hit a new key the whole selection is replaced by new key.
*Second case (selectOnFocus false), after modification cursor is positioned on the last character of the text.
In both cases editions in unmanageable.
Is there any workaround to for this?
Tested with SmartClient Version: SC_SNAPSHOT-2012-02-04_v8.1p/LGPL Development Only (built 2012-02-04)
In Chromium 16.0.912.77 and Firefox 10.0.1
Below you have the problematic code.
Thanks
Having a TextItem with redrawOnChange, each time the field is changed it is redrawn. As part of it, focus is set back to this item but as consequence, selection and cursor position is changed:
*In first case (selectOnFocus true), after doing any modification the text in the field is selected, if i don't realize it and hit a new key the whole selection is replaced by new key.
*Second case (selectOnFocus false), after modification cursor is positioned on the last character of the text.
In both cases editions in unmanageable.
Is there any workaround to for this?
Tested with SmartClient Version: SC_SNAPSHOT-2012-02-04_v8.1p/LGPL Development Only (built 2012-02-04)
In Chromium 16.0.912.77 and Firefox 10.0.1
Below you have the problematic code.
Thanks
Code:
isc.DynamicForm.create({ width: 600, fields: [ {name: 't2', type: 'text', title: 'selectOnFocus true', defaultValue: 'Change me...', redrawOnChange: true, selectOnFocus: true }, {name: 't1', type: 'text', title: 'selectOnFocus false', defaultValue: 'Change me...', redrawOnChange: true, selectOnFocus: false } ] });
Comment