Lots of editor feature work: bugs 26286, 34519, 28498, 36998, 37089, 14342. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@68913 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -143,11 +143,16 @@ function SetTextfieldFocus(textfield)
|
||||
{
|
||||
if (textfield)
|
||||
{
|
||||
dump("Selection Start="+textfield.selectionStart+"\n");
|
||||
dump("Selection End="+textfield.selectionEnd+"\n");
|
||||
textfield.focus();
|
||||
//TODO: This is not working -- did Simon checkin? Do we need to change XBL?
|
||||
textfield.selectionStart = 0;
|
||||
//textfield.selectionStart = 0;
|
||||
textfield.setAttribute("selectionStart",0);
|
||||
//TODO: Simon should change this to support "-1" for "select to end"
|
||||
textfield.selectionEnd = textfield.value.length;
|
||||
//textfield.selectionEnd = textfield.value.length;
|
||||
textfield.setAttrubute("selectionEnd",textfield.value.length);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user