How to get accessKeyLabel in WebKit with JavaScript? [duplicate]

萝らか妹 提交于 2019-12-22 10:27:55

问题


accessKeyLabel from what I can tell is not supported in Webkit (but works fine in Firefox) at the time of writing. This snippet shows what happens:

<input type="text" accesskey="D" name="dog" id="dog">

var dogInput = document.getElementById('dog');

console.log(dogInput.accessKey);
// Firefox, Webkit both output: "D"

console.log(dogInput.accessKeyLabel);
// Firefox output: "[ACCESS MODIFIER] D"
// Webkit output: undefined

Is there another way of getting the access modifier combination or accessKeyLabel in Webkit?


回答1:


This is an unimplemented feature (known bug) in WebKit:
https://bugs.webkit.org/show_bug.cgi?id=72715



来源:https://stackoverflow.com/questions/16623329/how-to-get-accesskeylabel-in-webkit-with-javascript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!