Skip to main content
Nov 30, 2009 4:09 PM UTC
Answered

discretionary hyphens and cursor movement in text question

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 is closed to new replies. Start a new post to keep the conversation going.
rdermerCorrect answer
Inspiring
Nov 30, 2009 4:39 PM UTC

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

Nov 30, 2009 4:58 PM UTC

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

Translate
rdermerCorrect answer
Inspiring
Nov 30, 2009 4:39 PM UTC

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

Translate