# 输入密码后自动聚焦安全密钥身份验证按钮

**URL:** <https://meta.discourse.org/t/automatically-focus-the-security-key-authentication-button-after-entering-password/258474>\
**Category:** Feature\
**Created:** [2023年三月17日 07:51 UTC](https://meta.discourse.org/t/automatically-focus-the-security-key-authentication-button-after-entering-password/258474 "2023-03-17T07:51:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arun](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@arun](https://meta.discourse.org/u/arun)\
**Post date:** [2023年三月17日 07:51 UTC](https://meta.discourse.org/t/automatically-focus-the-security-key-authentication-button-after-entering-password/258474/1 "2023-03-17T07:51:01Z")

</div>

我为我的 Discourse 账户配置了一个安全密钥。输入密码后，会出现一个带有按钮的提示，要求使用安全密钥进行身份验证。

 ![image](https://global.discourse-cdn.com/meta/original/4X/9/0/e/90e6289a0090e380c8d596de0dd278ea753a5ff4.png)

只有在点击该按钮后，安全密钥的身份验证流程才会触发。如果能自动高亮显示该按钮（而不是自动启动身份验证流程），那将是一个很好的改进，这样我就可以直接按 `Enter` 键来启动身份验证流程了。

GitHub 是这样做的：

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/5/5/555704ec9717f4de1ce8fc4b8f11b76569499d3b.png)
