davidebarranca's profile

23 Messages


744 Points

Tue, Sep 17, 2013 1:41 PM


Photoshop CC Scripting: Arrows keys' 'keydown' Events don't get fired

Run the following script and press arrow-up, arrow-down, arrow-left, arrow-right.
If you target ESTK, the Console correctly outputs "Up", "Down", "Left", "Right".
If you target Photoshop (CC, OSX), no 'keydown' Events are fired resulting in empty Console.


var win = new Window('dialog');
win.lbx = win.add('listbox', undefined, undefined, {items:['First Item', 'Second Item', 'Third Item', 'Fourth Item', 'Fifth Item']});
win.lbx.children[0].selected = true;
win.lbx.active = true;

var keydownHandler = function(event) {

win.lbx.addEventListener('keydown', keydownHandler);

12 Messages


208 Points

8 y ago

I'm having the same issue within Bridge CC.