Skip to main content
Roger Breton
Legend
July 19, 2023
Answered

Is there a way to associate a keyboard shortcut for the "Hyphenate" option?

  • July 19, 2023
  • 3 replies
  • 555 views

I confess it a drag to be slave to reaching for the checkbox with the mouse everytime I need to turn hyphenation off in a paragraph...

This topic has been closed for replies.
Correct answer pixxxelschubser

Would it be an option for you to turn off hyphenation in your paragraph format?

 

Otherwise, in my German InDesign there is the default shortcut [Shift]+[Ctrl]+[Alt]+[H]

 

 

3 replies

rob day
Community Expert
Community Expert
July 19, 2023

Hi @Roger Breton , If @pixxxelschubser ’s toggle option doesn’t work for you (toggling Hyphenation off leaves it turned of for new text creation), it can be scripted with the script assigned a key command. Something like this would turn off Hyphenation for the selected range of text :

 

 

var s = app.activeDocument.selection
if (app.activeDocument.selection.length == 0) {
	alert("No Text Selected")
} else{
    if (s[0].hasOwnProperty("paragraphs")) {
        s[0].paragraphs.everyItem().hyphenation = false
    }    
}

 

 

James Gifford—NitroPress
Legend
July 19, 2023

The key command only toggles hyphenation for the current paragraph, as an override. Moving to another paragraph is unaffected (the new paragraph retains whatever setting it had.)

 

That seems to be what the OP wants, but the script alternative is nice to have.

rob day
Community Expert
Community Expert
July 19, 2023

Moving to another paragraph is unaffected (the new paragraph retains whatever setting it had.)

 

I meant if you create a new text frame and enter some text. I get this:

 

 

 

Toggle Hyphenation Off with the key command:

 

Make a new text frame and enter some text:

pixxxelschubser
Community Expert
pixxxelschubserCommunity ExpertCorrect answer
Community Expert
July 19, 2023

Would it be an option for you to turn off hyphenation in your paragraph format?

 

Otherwise, in my German InDesign there is the default shortcut [Shift]+[Ctrl]+[Alt]+[H]

 

 

Roger Breton
Legend
July 21, 2023

Es arbeiten!!!!!! Vielen danke dir!!!!! XXX

pixxxelschubser
Community Expert
Community Expert
July 21, 2023

You are welcome. And thank you for the nice feedback.

James Gifford—NitroPress
Legend
July 19, 2023

I think you've found the only control in the entire layout that has no key assignment.

 

There is an assignment for the hyphenation menu; open that and a shift-tab takes you to the checkbox. Might be able to script that, or use a system or keyboard macro.