CS3-CS6 UI: Prevent widget from losing focus
hi folks,
i can't seem find way prevent text edit field losing keyboard focus when widget clicked--i hope i'm overlooking solution.
here situation:
suppose there 2 text edit widgets (te1 , te2) on dialog box.
the current behavior:
1. user enters text in te1.
2. user clicks in te2 field.
3. te1's update handler code handles keditboxgiveupkeyfocusmessage triggered when te2 clicked.
4. handler, notices te1 contains invalid text value.
5. handler displays warning stating problem.
6. te2 gets keyboard focus because clicked.
the desired behavior have step 6 change to:
6. [desired] due bad data, te1 keeps keyboard focus (the click on te2 ignored).
thanks in advance help!!
cheers!
-- jim
try implement "itextdatavalidation" edit box instead of using event handler check invalid values.
, when te1 looses key focus (te2 clicked), textdatavalidation check validity of value & alert come up. once close warning alert, focus remain in te1.
hope helps you.
More discussions in InDesign SDK
adobe
Comments
Post a Comment