I have a textbox called "comments". In this field I have text already entered. I want to allow users to add to the text I already have without erasing my text.
Ex. if the field contained "48 inch side door" I want to evaluate the string. If thr is no hyphen then add one and move to the position after the hyphen.
So "48 inch side door" keydown should add a hyphen and move to that position
"48 inch side door -" then everytime thr is a keydown I would have to evaluate if there is a hyphen then let them type unless the cursor is before the hyphen
Ex. if the field contained "48 inch side door" I want to evaluate the string. If thr is no hyphen then add one and move to the position after the hyphen.
So "48 inch side door" keydown should add a hyphen and move to that position
"48 inch side door -" then everytime thr is a keydown I would have to evaluate if there is a hyphen then let them type unless the cursor is before the hyphen