Mobile app version of vmapp.org
Login or Join
Karen819

: How to assign a hotkey to “No Break” How can I assign a hotkey to “No Break” function on Character panel? Or maybe write a script and create a custom panel? But how I access to this

@Karen819

Posted in: #AdobePhotoshop #PhotoshopScripting

How can I assign a hotkey to “No Break” function on Character panel? Or maybe write a script and create a custom panel? But how I access to this function is PS JS model?



Character is exist in Menu tab but it does not in the Keyboard Shortcuts. So I can show/hide or assign color to this menu item and I can't assign a shortcut for it:

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Karen819

1 Comments

Sorted by latest first Latest Oldest Best

 

@Gail6891361

Photoshop has 'Dynamic Shortcuts' for the Character Panel accessible by selecting text and reopening the Character Panel menu to see the hotkeys. This provides hotkeys like Underline
(Shift+Ctrl / CMD+U), however there isn't one for 'No Break'. Here is a work around instead.

Create an action called 'Apply No Break' and create a keyboard shortcut for it.



Select your text layer, click record and select 'No Break' from the Character Panel Menu.

Now whenever you select a text layer, you can type your shortcut and have it perform this



The Script for this approach would be:

var activeLayer = app.activeDocument.activeLayer;

if(activeLayer.kind == LayerKind.TEXT) {
activeLayer.textItem.noBreak = true;
}

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme