。库有一个名为jkeyboard.js的文件,它包含(部分)下面的代码:
type: function (key) {
var input = this.settings.input,
val = input.val(),
input_node = input.get(0),
start = input_node.selectionStart,
end = input_node.selectionEnd;
var max_length = $(input).at
当客户端在select选项之间移动时,为什么不触发键盘事件?还有其他的活动吗?
如何复制:
集中注意select元素。
打开选择选项。
使用键盘(上/下)箭头移动选择选项。
结果:当您使用上/下键盘键移动这些选项时,没有发送任何事件。
HTML
<!-- The second value will be selected initially -->
<select name="text"> <!--Supplement an id here instead of using 'text'-->
<