0

我正在使用 ExtJs 虚拟键盘

参考: http ://efattal.fr/extjs-dev/examples/virtualkeyboard

我想在按下虚拟键盘的“enter”键时触发 ajax 请求。有什么方法可以捕获“Enter”按键事件?

谢谢!

4

1 回答 1

0

我面临同样的问题。试试看
listeners: { keypress: function(keyboard, keyValue){ if(typeof console != 'undefined') console.log(keyValue); if(keyValue=="\n") { //your code here } } }

于 2011-06-03T05:11:19.450 回答