This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
// If bounds are null then there is no selection. | |
// But null check fails? So use Try/Catch instead. | |
if (app.activeDocument.selection.bounds) { | |
// Check Shift Modifier | |
SHIFT = ScriptUI.environment.keyboardState.shiftKey; | |
CTRL = ScriptUI.environment.keyboardState.ctrlKey; | |
// Fill manually. | |
if (!(CTRL || SHIFT)) { |