Skip to main content
November 30, 2009
Answered

discretionary hyphens and cursor movement in text question

  • November 30, 2009
  • 2 replies
  • 399 views

When I add discretionary hyphens to

words and then use the cursor keys to navigate, it moves over the discretionary hyphens as individual characters. Is this correct? To skip these do I need to write a keyboard handler to deal with it or is this a bug?

This topic has been closed for replies.
Correct answer rdermer

That's the way it works - TLF doesn't really know how the DH was placed and enables editing of them without special handling.  Users can insert a DH with ctrl-shift-hyphen.

If you want custom handling you'll have to devise a method - they keyboard handler can work - its a lot simpler if you are only working with horizontal LTR text.  The keys are interpreted in the physical direction for RTL and vertical text.

Richard

2 replies

November 30, 2009

Thanks for the help. I will add a Keyboard listener to handle what I need.

rdermerCorrect answer
Adobe Employee
November 30, 2009

That's the way it works - TLF doesn't really know how the DH was placed and enables editing of them without special handling.  Users can insert a DH with ctrl-shift-hyphen.

If you want custom handling you'll have to devise a method - they keyboard handler can work - its a lot simpler if you are only working with horizontal LTR text.  The keys are interpreted in the physical direction for RTL and vertical text.

Richard