如何使用JavaScript在WebKit中获取accessKeyLabel? [英] How to get accessKeyLabel in WebKit with JavaScript?
本文介绍了如何使用JavaScript在WebKit中获取accessKeyLabel?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
从我的 accessKeyLabel 在撰写本文时,Webkit中不支持(但在Firefox中可以正常工作)。 此代码段显示了发生的情况:
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
是否有其他方法可以在Webkit中获取访问修饰符组合或accessKeyLabel?
Is there another way of getting the access modifier combination or accessKeyLabel in Webkit?
推荐答案
这是一个未实现的功能WebKit中的(已知错误):
https://bugs.webkit .org / show_bug.cgi?id = 72715
This is an unimplemented feature (known bug) in WebKit:
https://bugs.webkit.org/show_bug.cgi?id=72715
这篇关于如何使用JavaScript在WebKit中获取accessKeyLabel?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文