View Full Version : Keyboard press event and button.

1 Aug 2012, 4:40 AM
Hello all! I have a form with digit buttons. I press digit buttons by mouse and they appear in the field! :) But I need press digit keys on keyboard and digits must appear in the field also. How I can do it?

1 Aug 2012, 7:00 AM
This will get you started:

yourContainer.getEl().on('keypress', function(event, obj) {
var digit = String.fromCharCode(event.getCharCode());