Page 1 of 1

Keyboard back press

Posted: Tue Feb 18, 2014 10:52 am
by ishani modi

Hi,

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

Thanks,
Ishani


Keyboard back press

Posted: Tue Feb 18, 2014 11:55 am
by Kateryna Grynko

Hi Ishani,

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


Keyboard back press

Posted: Tue Feb 18, 2014 12:08 pm
by ishani modi

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

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

}


Keyboard back press

Posted: Tue Feb 18, 2014 2:45 pm
by Kateryna Grynko

Ishani,

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


Keyboard back press

Posted: Wed Feb 19, 2014 9:21 am
by ishani modi

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


Keyboard back press

Posted: Wed Feb 19, 2014 3:28 pm
by Kateryna Grynko

Hi Ishani,

Does it work? Do you need any further help?


Keyboard back press

Posted: Tue Feb 25, 2014 11:09 am
by ishani modi

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


Keyboard back press

Posted: Tue Feb 25, 2014 11:10 am
by Maryna Brodina

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


Keyboard back press

Posted: Tue Feb 25, 2014 11:49 am
by ishani modi

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


Keyboard back press

Posted: Tue Feb 25, 2014 1:35 pm
by Maryna Brodina

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?