Bug in "Fit Image.jsx" (CS4)

B
Posted By
BPerrot
Jan 24, 2009
Views
1447
Replies
0
Status
Closed
There is an incredible bug in the preset script "Fit Image.jsx" in Photoshop CS4 :

This script don’t works with keybords like French one’s, where the numeric keys are shifted keys.

There an algorithm to filter only numeric keys which is the worst one I ever read !

So, if you have such a keyboard, patch this part of the script :

Replace :

// key identifier functions
function KeyHasModifier (event) {
return event.shiftKey || event.ctrlKey || event.altKey || event.metaKey; }

with :

// key identifier functions
function KeyHasModifier (event) {
return event.ctrlKey || event.altKey || event.metaKey;
}

It continue to beep, but it allows to enter numeric values !

How to Master Sharpening in Photoshop

Give your photos a professional finish with sharpening in Photoshop. Learn to enhance details, create contrast, and prepare your images for print, web, and social media.

Related Discussion Topics

Nice and short text about related topics in discussion sections