I have a grid in a Dialog. I want to respond to the delete key being pressed so that I can delete records when the user presses the delete key.
adding a key listener to the dialog w/ a key of 127 seems to have no effect. I do have a Default button set and also have another key listener of 27 (escape) which works just fine.
Any ideas?
adding a key listener to the dialog w/ a key of 127 seems to have no effect. I do have a Default button set and also have another key listener of 27 (escape) which works just fine.
dialog.addKeyListener(127, function() {alert('delete key pressed.')}, this, true);

本文介绍了一位开发者尝试在对话框内的网格中通过按下Delete键来删除记录的方法。目前添加了按键监听器但未生效,而其他按键如Escape则正常工作。
922

被折叠的 条评论
为什么被折叠?



