chroxify / chroxify/haptic

Some keyboard shortcuts for web interface don't work on Windows.

Open
#24 0 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Svelte
Stars
1.7k
Forks
54
PR merge metrics
No merged PRs in 30d

Description

### Describe your issue

When the web app loads, you see little shortcut suggestions popup briefly. These keyboard shortcuts do not seem to change based on the user's OS, but instead always say:

- Command + O: Open Collection
- Command + N: New Note

With Windows and Linux not having a command key, this can be a little confusing. Most of the time, people will assume to replace the command key with the control key. This is where the problem comes in. At least on Firefox and Edge, `Ctrl + N` opens a new window. This prevents the web app from being able to use `Ctrl + N` as a shortcut.

Similarly, on Firefox, `Ctrl + Shift + N` does create a new folder, but on Edge, `Ctrl + Shift + N` is used by the browser to open a new private window. `Ctrl + O` works on both Firefox and Edge as expected.

I would suggest using the Alt key instead of using the Ctrl key on Windows (and Linux). Looking at [Mozilla's guide to keyboard shortcuts on Firefox](https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly), Alt seems like it should be a safe option instead of using Ctrl. On the [keyboard shortcut guide for Edge](https://support.microsoft.com/en-us/microsoft-edge/keyboard-shortcuts-in-microsoft-edge-50d3edab-30d9-c7e4-21ce-37fe2713cfad#ID0EBD=Windows), it looks like some commands do use Alt and a letter, but `Alt + N`, `Alt + Shift + N`, and `Alt + O` are available for the web app.

(With all this said, I think `Ctrl + N` will be fine for the Window's desktop app, even if it's not acceptable for the Web App on Windows.)

### Steps to reproduce

There's (at least) two different browser behaviors, so I'll spell out both:

### Firefox
1. Go to the web app using Firefox on Windows (possibly also Linux, unsure).
2. Notice the keyboard shortcut suggestion while they're previous on the screen.
3. Try to use the keyboard shortcut (Command + N as Ctrl + N) to create a note.

### Edge
1. Go to the web app using Edge on Windows.
2. Notice the keyboard shortcut suggestion while they're previous on the screen.
3. Try to use the keyboard shortcut to create a note (Command + N as Ctrl + N).
4. (Optional) Try to use the keyboard shortcut to create a new folder (Command + Shift + N as Ctrl + Shift + N).

### What was the expected result?

The expected behavior has two parts:

- Firstly, the keyboard shortcuts that are suggested to the user will be specific for their operating system. Windows/Linux users should not see suggestions that use the Command key.
- Keyboard shortcuts for a new note would create a new note instead of opening a new browser window.

### Put here any screenshots or videos (optional)

_No response_

### Would you like to work on this issue?

None

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.