Skip to main content
Inspiring
August 28, 2024
Question

Same shortcut for two commands

  • August 28, 2024
  • 6 replies
  • 405 views

Hello,

Can I make the shortcut I chose for a character style (in my case, shortcut cmd+i gives me the character style italic) return me to the [without] position only if I am in the italic style?

Thank you in advance.

This topic has been closed for replies.

6 replies

Community Expert
August 28, 2024

I am not sure what exactly you are asking?

But, the default shortcut to make text italic, and then return to regular is Cmd-Shift-I

Robert at ID-Tasker
Legend
August 28, 2024
quote

I am not sure what exactly you are asking?

But, the default shortcut to make text italic, and then return to regular is Cmd-Shift-I


By @Jeffrey_Smith

 

It's not about local override - but about applying and removing CharStyle. 

 

Script could go even further - check selected TSRs and restyle them accordingly.

 

If there will be [italic][normal][bold] make it [normal][italic][bold-italic]. And so on. 

 

Community Expert
August 28, 2024

After re-reading the question, if sounds as though OP wants to mimic the toggle action of making text italic, then back to regular with a shortcut, but apply a character style (italic), using same shortcut, press again to apply character style (regular).

If this is the case, I would suggest using separate shortcuts, but similar enough to easily switch back and forth between character styles.

Robert at ID-Tasker
Legend
August 28, 2024

Can be done with a script - but you need to wait for someone else - I prefer VB over JS - and I'm on my phone anyway.