ishani modi
Posts: 0
Joined: Wed Oct 23, 2013 4:49 am

Keyboard back press

Hi,

I am using textbox as input and want its backspace keycode. I am using keypress event.
How i will get it ?

Thanks,
Ishani

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Keyboard back press

Hi Ishani,

Try this please:preif (event.keyCode === 8){
alert("backspace");
}/pre

ishani modi
Posts: 0
Joined: Wed Oct 23, 2013 4:49 am

Keyboard back press

Hi, Katya i tried this but it is not working :(

function TextBoxPINSIXOnKeyPress(event){
if (event.keyCode === 8){
alert("backspace");
}

}

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Keyboard back press

Ishani,

Use keydown event instead of keypress. Keypress event will work for symbols only.

ishani modi
Posts: 0
Joined: Wed Oct 23, 2013 4:49 am

Keyboard back press

Hi Katya
I tried with the keydown event, but it is still now working, so i have used keyup event.
I am not getting keycode on any textbox.
Let me clarify. I am using textbox on which on backspace it should move cursor to previous textbox which is not happening. can you pls help me
Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Keyboard back press

Hi Ishani,

Does it work? Do you need any further help?

ishani modi
Posts: 0
Joined: Wed Oct 23, 2013 4:49 am

Keyboard back press

hi,
Sorry for late update.
I am continue trying it, actly it works in browser properly but in device its working in wrong way.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Keyboard back press

Hello! Could you clarify what exactly doesn't work?

ishani modi
Posts: 0
Joined: Wed Oct 23, 2013 4:49 am

Keyboard back press

when i press back key of keyboard on device it goes to the alternate textboxes on device and i have given textbox keyup event
Image

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Keyboard back press

Could you clarify what button and on what keyboard you click? Is this Delete button on soft keyboard?
Could you also describe in more details what are these textboxes? Did you specify any properties for these textboxes?

Return to “Issues”