enter, returnãã¼ã§ãµãããã
focusManager.defaultPushButton = submit_button;
éä¸å
çã®è©±ã§ã¯ããKeyã¯ã©ã¹ã®ãªã¹ãã¼ã«è¨å®ããæ¹ããç´æªçã
var lo:Object = new Object(); lo.onKeyDown = function() { if (Key.getCode() == Key.ENTER) { focusManager.getFocus().buttonAction(); } }; Key.addListener(lo); submit_button.buttonAction = submitAction; submit_button.addEventListener("click", lo); function submitAction() { trace( "SUBMIT!"); }