Hi,
Well done, I think this product is excellent so far.
Has the Enter key been disabled somehow?
I have a TextField in which I want Flash to respond to the Enter key being pressed. I have added code to the TextField prototype to listen for the Enter key and it works in Flash (Version , and using the standard Flash projector, but when I run my FlashPlayerControl version it doesn't respond to the Enter key.
My code:
TextField.prototype.onKeyDown = function () {
if (Key.getCode() == Key.ENTER
&& this.pressedOnce == undefined
&& this.isFocused()) {
this.onSubmit();
this.pressedOnce = true;
}
};
TextField.prototype.onKeyUp = function () {
if (Key.getCode() == Key.ENTER) {
this.pressedOnce = undefined;
}
};
mc_Search2.txtSearch.onSubmit = function() {mc_Search2.DoSearch(0);}
Key.addListener(mc_Search2.txtSearch);
Thanks and regards,