# 在新标签页中打开“键盘快捷键”会打开你点击“键盘快捷键”时所在的同一页面

**URL:** <https://meta.discourse.org/t/opening-keyboard-shortcuts-in-a-new-tab-opens-the-same-page-you-were-on-when-you-clicked-on-keyboard-shortcuts/132071>\
**Category:** UX\
**Tags:** keyboard-shortcuts\
**Created:** [2019 年10 月 28 日 15:02 UTC](https://meta.discourse.org/t/opening-keyboard-shortcuts-in-a-new-tab-opens-the-same-page-you-were-on-when-you-clicked-on-keyboard-shortcuts/132071 "2019-10-28T15:02:07Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

作者： ![lionel-rowe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lionel-rowe/32/134288_2.png) [@lionel-rowe](https://meta.discourse.org/u/lionel-rowe)\
发布日期： [2019 年10 月 31 日 17:53 UTC](https://meta.discourse.org/t/opening-keyboard-shortcuts-in-a-new-tab-opens-the-same-page-you-were-on-when-you-clicked-on-keyboard-shortcuts/132071/4 "2019-10-31T17:53:15Z")

</div>

仅供参考，完全移除 `href` 属性（而不是将其设置为空字符串，后者是 [对当前文档的引用](https://stackoverflow.com/a/43340108)）应该可以防止链接在新标签页中打开，至少在大多数浏览器中是这样。

---

_[View the full topic](https://meta.discourse.org/t/opening-keyboard-shortcuts-in-a-new-tab-opens-the-same-page-you-were-on-when-you-clicked-on-keyboard-shortcuts/132071)._
