3

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 → No Break

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:

  • I deleted my answer. Annoyingly Adobe did not include handles to make No Break shortcutable without scripting. – Rsiel May 22 '14 at 14:56
2

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.

Photoshop No Break Keyboard Shortcut

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

Photoshop No Break Keyboard Shortcute

The Script for this approach would be:

var activeLayer = app.activeDocument.activeLayer;

if(activeLayer.kind == LayerKind.TEXT) {
    activeLayer.textItem.noBreak = true;
}
  • This only works for the entire text layer. But I need to add no break only shot words. Maybe I can write a little JS to automate this process? I can not find a JS-method to “No Break”. Like this: i.stack.imgur.com/hHmuN.png – Nikita Kozin Sep 1 '14 at 9:35
  • It does'nt seem like you can run scripts while the text item is being edited. I am still working on a solution for this, so don't lose hope :) – Brian Dillingham Sep 3 '14 at 0:06
  • Any this new on this idea? I have to do a ton of little ones in a photoshop comp. – Eddie Adolf Mar 4 '16 at 17:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.