Brenn
November 22nd, 2008, 13:05
Is there any way to capture a keypress inside a control?
Basically what I'm trying to accomplish is this: I have a windowlist for data entry. If I'm on the last control on a particular item and the user presses tab or enter I want to automatically create a new item in the windowlist and shift the focus to the first control of the newly created windowlist item. I think I could work around this using <tabtarget> and code in the first and last controls of the windowlist entry, but capturing the keypress is the proper way to do it so I'm asking.
Basically what I'm trying to accomplish is this: I have a windowlist for data entry. If I'm on the last control on a particular item and the user presses tab or enter I want to automatically create a new item in the windowlist and shift the focus to the first control of the newly created windowlist item. I think I could work around this using <tabtarget> and code in the first and last controls of the windowlist entry, but capturing the keypress is the proper way to do it so I'm asking.