posts - 431,  comments - 344,  trackbacks - 0

jsx3.gui.Event
enterKey()
method enterKey()
Returns true if the enter key was pressed.
Returns:
{boolean} –


jsx3.gui.Event
keyCode()
method keyCode()
Returns integer representing the key code of the key just pressed/keyed-down.
Returns:
{int} – keycode

 I have two jsx3.gui.TextBox fields and the first one has an event handler set on the "Key Down" property.
----------
Key Down: nextField(this,objEVENT);
----------

function nextField(objJSX,objEvent){
var keyCode = objEvent.keyCode();

if (keyCode == 13) {
objEvent.cancelKey();
objEvent.cancelBubble();
objEvent.setKeyCode(jsx3.gui.Event.KEY_TAB);
objJSX.doEvent(jsx3.gui.Interactive.JSXKEYDOWN, {objEVENT:objEvent});
}
}

posted on 2007-04-23 16:19 周锐 阅读(266) 评论(0)  编辑  收藏 所属分类: TIBCO

只有注册用户登录后才能发表评论。


网站导航: