# 执行删除帖子等破坏性操作时，使用键盘也应包含提示

**URL:** <https://meta.discourse.org/t/destructive-actions-like-deleting-a-post-should-include-a-prompt-when-using-the-keyboard/83926>\
**Category:** UX\
**Created:** [2018年三月27日 02:28 UTC](https://meta.discourse.org/t/destructive-actions-like-deleting-a-post-should-include-a-prompt-when-using-the-keyboard/83926 "2018-03-27T02:28:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![barryvan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barryvan/32/82635_2.png) [@barryvan](https://meta.discourse.org/u/barryvan)\
**Post date:** [2018年三月27日 02:28 UTC](https://meta.discourse.org/t/destructive-actions-like-deleting-a-post-should-include-a-prompt-when-using-the-keyboard/83926/1 "2018-03-27T02:28:02Z")

</div>

I just became very confused, because I inadvertently deleted a topic by pressing d without the editor focussed.

I would suggest that destructive or dangerous actions should always include an “are you sure?” prompt, even (especially?) when triggered using a keyboard shortcut. This would mean that deleting a topic would then be denter.

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2018年三月27日 02:40 UTC](https://meta.discourse.org/t/destructive-actions-like-deleting-a-post-should-include-a-prompt-when-using-the-keyboard/83926/2 "2018-03-27T02:40:57Z")

</div>

I follow but you were using `j` / `k` to navigate no?

The combo `j` `d` does delete with no prompt. But d by itself should not.

---

<div class="post-metadata">

**Author:** ![barryvan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barryvan/32/82635_2.png) [@barryvan](https://meta.discourse.org/u/barryvan)\
**Post date:** [2018年三月27日 04:03 UTC](https://meta.discourse.org/t/destructive-actions-like-deleting-a-post-should-include-a-prompt-when-using-the-keyboard/83926/3 "2018-03-27T04:03:58Z")

</div>

It’s very possible – at the time, I was reading from a different screen, so I didn’t realise the editor wasn’t focussed. I may well have typed j…d or k…d as a result. 🙂
