Mar 14, 2012, 1:20 PM
[CLOSED] TextField KeyPress handler for the Backspace key
Hi,
Is there any way to handle the Backspace key pressed within a TextField control? If the TextField is not read-only, I need to treat the backspace key press as a change to the input string. Otherwise, ignore it.
Vadym
Is there any way to handle the Backspace key pressed within a TextField control? If the TextField is not read-only, I need to treat the backspace key press as a change to the input string. Otherwise, ignore it.
<ext:TextField ID="TextField1" runat="server"
EnableKeyEvents="true" AllowBlank="false">
<Listeners>
<KeyPress Handler="if(!this.readOnly){handleOtherControls();}" />
</Listeners>
</ext:TextField>
Thanks,Vadym
Last edited by Daniil; Mar 15, 2012 at 1:01 PM.
Reason: [CLOSED]