Bridge CC edittext keydown event not working
As of Bridge 6.2.0.179 x64, the event listeners 'keydown' and 'keyup' still do not work. I think the mouse events are also broken.
What I'm trying to do:
Create a search box that executes the search when the user presses the "Enter" key. Pretty standard, but as of yet, impossible in Bridge CC.
I am currently using a "Go" button to execute the search, but users are requesting the "Enter" key functionality.
These two functions work in CS6, but not CC:
editText2.addEventListener ("keydown", function (k){
if (k.keyName == "Enter"){
alert("Enter key pressed")
}
})
editText2.addEventListener ('keydown', function (e){
if(ScriptUI.environment.keyboardState.keyName == "Enter"){
getWebVocab()
}
}
Given Adobe's lack of response to other CC ScriptUI bugs, I don't have much faith that this problem will be fixed. Bridge: ExtendScript UI not drawing correctly | Photoshop Family Customer Community
Does anyone have a workaround?
