File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 4545 // add placeholder to get the comma-and-space at the end
4646 terms . push ( "" ) ;
4747 this . value = terms . join ( ", " ) ;
48+ if ( document . selection ) {
49+ this . focus ( ) ;
50+ var range = document . selection . createRange ( ) ;
51+ range . moveStart ( 'character' , this . value . length ) ;
52+ range . moveEnd ( 'character' , 0 ) ;
53+ range . select ( ) ;
54+ }
4855 return false ;
4956 }
5057 } ) ;
Original file line number Diff line number Diff line change 3939 // add placeholder to get the comma-and-space at the end
4040 terms . push ( "" ) ;
4141 this . value = terms . join ( ", " ) ;
42+ if ( document . selection ) {
43+ this . focus ( ) ;
44+ var range = document . selection . createRange ( ) ;
45+ range . moveStart ( 'character' , this . value . length ) ;
46+ range . moveEnd ( 'character' , 0 ) ;
47+ range . select ( ) ;
48+ }
4249 return false ;
4350 }
4451 } ) ;
You can’t perform that action at this time.
0 commit comments