[Feature] Detect OS and provide the keyboard shortcut's description accordingly
Currently the list of keyboard shortcuts present in the right mini sidebar displays each shortcut in the following format .
Command (or Alt) + Left Arrow
Instead of this we can detect the OS during the app load and then only show the corresponding command description. One major problem with the current app is that is prioritizing the Mac users over Windows users in these small ways. Why should the Windows user have to read more than the Mac user to discover a new shortcut. I hope that I'm making sense here :smile:
The solution I'm presenting will result in the following
Windows User -
Alt + Left Arrow
Mac User -
Command + Left Arrow
@MartinSchoeler is there any place where you are already retrieving the OS name, if so I could reuse that code instead of writing my own.
@itaditya https://github.com/RocketChat/Rocket.Chat/blob/develop/packages/rocketchat-ui-sidenav/client/toolbar.js#L101
I am on it.
I'm new to Rocket.chat and would like to work on this if someone isn't already. The link @MartinSchoeler provided seems to have been deleted. Can someone help me with where I can find information about the user's OS? Thanks.
I'd like to work on this issue.
Is this issue still open? I would like to work on this
@itaditya is this open I would like to work on it
@MartinSchoeler Is this issue still open? I would like to work on this
Hi team , I’d love to work on this feature if it’s available.
Detecting the user’s OS and displaying the appropriate keyboard shortcut descriptions sounds like a valuable UX improvement. I can implement this cleanly while keeping the behavior consistent across platforms.
Please let me know if I can proceed with this issue. Thanks!
Hi! I'd like to work on this issue.
My approach:
- Detect the user's OS using navigator.platform
- Conditionally render "Command" for Mac and "Alt" for Windows/Linux
- Update all keyboard shortcut displays in the sidebar
Could someone point me to the component that renders the keyboard shortcuts list?
Thanks!