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 !

MacBook Pro 16” Mockups 🔥

– in 4 materials (clay versions included)

– 12 scenes

– 48 MacBook Pro 16″ mockups

– 6000 x 4500 px

Related Discussion Topics

Nice and short text about related topics in discussion sections