Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate how to document keyboard and mouse gestures on macOS #58

Open
lassoan opened this issue Feb 21, 2024 · 4 comments
Open

Investigate how to document keyboard and mouse gestures on macOS #58

lassoan opened this issue Feb 21, 2024 · 4 comments
Assignees

Comments

@lassoan
Copy link
Collaborator

lassoan commented Feb 21, 2024

Check how Control/Command keyboard shortcuts are documented in other cross-platform software (Adobe, Microsoft, etc.) so that we document these differences in shortcuts similarly in Slicer.

Differences include:

  • Control/Command key modifier is swapped on macOS compared to Windows and Linux
  • Right-click on macOS is often available as Ctrl-Left-click
  • There is no Alt key on macOS, it is often mapped to Option
@FatouBintou22
Copy link
Collaborator

FatouBintou22 commented Mar 6, 2024

In many cross-platform software programs, notably those from Adobe and Microsoft, keyboard shortcuts are generally documented to reflect the conventions of the respective operating systems, while maintaining consistency wherever possible.

  • General information about keyboard shortcut documentation in Adobe products like Photoshop, Illustrator, InDesign:

1 Key Modifiers:

  • Windows: Ctrl (Control) is commonly used as the primary modifier. For example, Ctrl+C for copy.
  • macOS: Command (⌘) is typically the main modifier. For instance, Command+C for copy.

2 Right-Click:

  • Windows: Right-clicking is standard and does not require an additional modifier.
  • macOS: Right-clicking can be simulated by clicking with the Ctrl key held down or using two fingers to click on a trackpad.

3 Alt/Opt Key:

  • Windows: The Alt key is often used as a modifier in keyboard shortcuts.
  • macOS: The Alt key is usually mapped to the Option key. Alt+C on Windows might be equivalent to Option+C on macOS.

4 More about the default keyboard shortcuts: link here

  • General information about keyboard shortcut documentation in Microsoft products such as Outlook, Teams, Excell:

1 Key Modifiers:

  • Windows: Ctrl (Control) is commonly used as the primary modifier. For example, Ctrl+C for copy.
  • macOS: On Microsoft products running on macOS, the Command key (⌘) is typically used as the main modifier.

2 Right-Click:

  • Right-clicking is a standard action on both Windows and macOS and is often used to access context menus.

3 Alt/Opt Key:

  • The Alt key is often used as a modifier in keyboard shortcuts on Windows.
  • On macOS, the Alt key is equivalent to the Option key.

4 More about the default keyboard shortcuts:
General link here
Outlook link here
Note that all Microsoft keyboards are equipped to perform shortcuts in Windows and other Microsoft applications.

@pieper
Copy link
Member

pieper commented Mar 6, 2024

Visual studio code provides different cheatsheets for each OS:

https://code.visualstudio.com/docs/getstarted/tips-and-tricks#_keyboard-reference-sheets

For their online documentation it seems they embed a code snippet that dynamically changes the document based on what OS your browser is coming from:

https://github.com/microsoft/vscode-docs/blob/main/docs/getstarted/tips-and-tricks.md?plain=1#L80

If we think it's worth it we could do something similar with readthedocs.

@jcfr
Copy link
Member

jcfr commented Mar 6, 2024

re: vscode documentation

They are indeed processing the kb(shortcut-identifier) to generate HTML as well as javascript dynamically updating the page based on the current user agent and the bindings organized in json files1.

That said, after inspecting the microsoft/vscode-docs repository, it looks like the corresponding infrastructure is organized in a private project called microsoft/vscode-website23

getstarted/keybindings#_basic-editing
image image
https://code.visualstudio.com/dist/index.js
image

Footnotes

  1. https://github.com/microsoft/vscode-docs/tree/main/build/keybindings

  2. https://github.com/microsoft/vscode-docs/tree/main?tab=readme-ov-file#publishing

  3. https://github.com/microsoft/vscode-docs/blob/f4abacbb8094f1991e2f754b77764bd317115909/gulpfile.js#L12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants