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 !

Must-have mockup pack for every graphic designer 🔥🔥🔥

Easy-to-use drag-n-drop Photoshop scene creator with more than 2800 items.

Related Discussion Topics

Nice and short text about related topics in discussion sections