Customizable keyboard shortcuts

AI-generated summary

In a discussion titled Customizable keyboard shortcuts, Noble_Fish proposed adding a feature allowing administrators to set default shortcuts and users to customize their own. They argued this would resolve common conflicts, such as the debate over whether Ctrl+F should trigger browser or site search, and Ctrl+Enter for posting versus line breaks. Canapin noted the potential frustration for users managing multiple Discourse sites with different configurations. Noble_Fish agreed that administrators should set defaults but expressed concern about the technical challenge and storage implications of saving individual user data, comparing it to game save systems. Canapin countered that storing only changed shortcuts would be negligible in terms of storage, as most users would not modify them. However, Noble_Fish raised a security concern regarding potential data bloat if malicious actors created fake accounts to spam shortcut settings. Canapin dismissed this, stating there are only about 100 shortcuts, so the impact would be minimal. Noble_Fish conceded that while batch-registered fake accounts could accumulate data, the volume would still be insignificant compared to other server loads like profile images.

I only discovered today that the button with a keyboard icon at the bottom right of the page only has a query function and cannot be customized. :joy:

I believe there needs to be a place that allows administrators to adjust default shortcuts and users to customize their own shortcut settings. :wink:

Moreover, this could also resolve many existing and past issues on the forum :slightly_smiling_face:, such as “some people think Ctrl+F should enable browser search rather than site search, which doesn’t align with habits, yet others hope Ctrl+F triggers site search”, “some users report misoperations due to the Ctrl+Enter shortcut causing accidental posts, but others consider Ctrl+Enter a fairly standard shortcut for posting” and many other problems (honestly, I never thought the latter would become an issue until I encountered someone using Ctrl+Enter for line breaks and Enter for posting…)

2 likes

In the context of a single site, in makes sense. Now, let’s hope those users don’t use multiple Discourse sites. Having different shortcuts for forums using the same software sounds like a frustrating experience :sweat_smile:

6 likes

Yes, this is why it needs to allow administrators to set default values while allowing users to customize according to their preferences. :slightly_smiling_face:

Some games offer a solution where the code table for shortcut keys can be imported and exported, allowing users to maintain their accustomed settings across different installments of the same series. This, of course, excludes newly added customized content in sequels or mods. However, implementing this feature in Discourse might be challenging, and storing shortcut data for all users would also consume server storage space, so I am uncertain about the necessity of this functionality.

1 like

From a technical standpoint, perhaps, but

If you stores only changed shortcuts, it would be negligible, especially since the majority of users won’t bother change their settings anyways, right?

1 like

Yeah, but I’m considering whether someone might exploit this feature to leave a large amount of junk data on the website server as a prank (if that website hasn’t modified the clean_up_inactive_users_after_days setting).

There are like 100 keyboard shortcuts. It will have no impact whatsoever.

When a large number of fake accounts are registered in batches, these data accumulate incrementally. Although, under the same number of attempts, the data generated by this method is negligible compared to uploading images to profile pictures and information cards. :laughing: