• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Same shortcut for two commands

Participant ,
Aug 28, 2024 Aug 28, 2024

Copy link to clipboard

Copied

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.

TOPICS
How to , Performance

Views

167

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 28, 2024 Aug 28, 2024

Copy link to clipboard

Copied

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. 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 28, 2024 Aug 28, 2024

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 28, 2024 Aug 28, 2024

Copy link to clipboard

Copied

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. 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 28, 2024 Aug 28, 2024

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 28, 2024 Aug 28, 2024

Copy link to clipboard

Copied

Indeed, you understood my question.

Separate shortcuts: it's precisely what I want to avoid.

Thank you for your answers.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 28, 2024 Aug 28, 2024

Copy link to clipboard

Copied

LATEST

@Jeffrey_Smith

 

But script can easily avoid the need for two separate shortcuts.

 

And also offer extra functionality. 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines