gpt4 book ai didi

javascript - 如何检测文本区域上箭头键的按下事件?

转载 作者:数据小太阳 更新时间:2023-10-29 05:52:44 26 4
gpt4 key购买 nike

创建以下 html 页面:

<textarea id="code" rows="10"></textarea>
<script>
document.onkeydown = function(event) {
alert(event.keyCode);
}
</script>

Mobile Safari(在模拟器或带键盘的设备上)上打开它,点击文本区域开始编辑。现在按任意箭头键 - 事件不会触发。

如何检测方向键的向下键?

附言Apple Bug Report 系统的相关问题:13243285

最佳答案

苹果官方回答:

Thank you for contacting Apple Developer Technical Support (DTS). Our engineers have reviewed your request and have concluded that there is no supported way to achieve the desired functionality given the currently shipping system configurations.

关于javascript - 如何检测文本区域上箭头键的按下事件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14959048/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com