Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
SumiGhosh
Posts: 424
Registered: ‎09-20-2011
My Device: Z10 LE, Playbook, DevAlpha C, 9900, 9380
My Carrier: Vodafone

Capturing software keyboard enter in BB10

Hi,

Can anybody help me with the code for capturing software keyboard enter in BB10.

Please use plain text.
BlackBerry Development Advisor
bryanhiggins
Posts: 187
Registered: ‎12-18-2012
My Device: Z10, Q10, Q5, Z30, Z3
My Carrier: Bell

Re: Capturing software keyboard enter in BB10

document.addEventListener('keypress', function (evt) {

    if (evt.keyCode === 13) {

        console.log("ENTER");

    }

});

Bryan Higgins
BlackBerry WebWorks
@bryanhiggins
Please use plain text.