show word of shanbay
< 脚本 shanbay_word 的反馈
提示可以用扇贝官方解决方案,更完美
我将快捷键换成了 方向键(上)和数字键(9)
function keyDownHandle(event) { if (event.keyCode == 38 || event.keyCode == 105) { setTimeout(function () { var dom = $(document.activeElement); $(dom).popover({ trigger: 'focus', placement: 'top', content: $(dom).attr('data'), template: '<div class="popover word-hint-popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"><p></p></div></div></div>' }); $(dom).addClass('popovered'); dom.focus(); // document.activeElement.value = document.activeElement.getAttribute('data') console.log(document.activeElement.value); }, 50); } }
你好,感谢反馈,现在才看到,已经添加进去了, 不过是根据我的习惯, 按8键.
登录(不可用)以发布留言。
提示可以用扇贝官方解决方案,更完美
我将快捷键换成了 方向键(上)和数字键(9)