Disabling problematic hotkeys

We’ve had some issues with moderators accidentally deleting posts with the d hotkey and not realizing what they had done. It doesn’t seem to produce a prompt. Is it possible to add an option to disable potentially problematic hotkeys like d or !? Thanks!

3 Likes

This is actually a bug … and not a good one.

Hitting d out of the blue should do nothing not delete a topic… that is crazy bananas.

Hitting j and d … OK … MAYBE… you did opt for keyboard then. Having a look at a fix now.

2 Likes

@sam I’m pretty sure it has to do with the new keyboard hover support we added.

Hitting d while looking at a topic does not delete it, unless the mouse if hovered over the OP. Same for posts, mouse must be hovering for d to do anything.

3 Likes

Ouch, I am pulling this feature. This is terrible.

EDIT: this still does not explain why this happens with delete and not with like…

4 Likes

We should fix the bug rather than blindly pull.

1 Like

The feature is a bug.

When routing an action to a post, we check:

  • Do we have a post highlighted with via j k ? ok, use that

  • Do is mouse cursor hovered on a post, ok use that.

This is a recent change introduced via:

The problem it was trying to solve is, "how do I know I can hit e and get it to do something?`

The keyboard shortcuts talk about it here:

The original “proposal here” was to pop some help, this is what gmail does:

image

My call is that the solution of “routing to hovered” does not go anywhere towards teaching, I am also super on the fence about the “teaching” approach here even the one gmail uses.

Like is odd, cause it has some special routing code that does not go through a common path, will sort that out.

2 Likes

Fixed per:

Thanks heaps for reporting this @mogu !

5 Likes

I agree with @codinghorror here. Rather than pulling this feature, we should restrict it to harmless and “in-the-face” shortcuts like: edit, reply, flag or share which all trigger a large UI change.

Not sure we need to teach people about this as I feel it’s a “power user” feature.

I personally am a fan of the :computer_mouse: + e.

2 Likes

Hmmm … maybe, this is an extreme ninja power user feature and does have the potential to surprise people. That said yeah the risk is a lot lower if we remove “like” and “delete” and “bookmark” and it is whitelist based.

Also keep in mind the root complaint (we had 3 dupe topics on this) was that they were not able to figure out about all the post action keyboard shortcuts even though it was in help, this ninja feature gets them nowhere closer to learning about j or k and it does add complexity.

The big issue I have with :mouse: e is that there is no visual cue at all that a post is hovered, this heavily relies on you just knowing about this magic.

Making this whitelist based will make it even harder to explain. (how do you get on the whitelist?)

1 Like

Just popping a dialog saying “you must select a post first, press ? to see keyboard shortcuts” is fine by me.

2 Likes

This topic was automatically closed after 4 days. New replies are no longer allowed.