Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Use of non-standard macOS short cuts #16

Closed
3 tasks done
unknowndomain opened this issue Oct 19, 2019 · 6 comments
Closed
3 tasks done

Use of non-standard macOS short cuts #16

unknowndomain opened this issue Oct 19, 2019 · 6 comments
Assignees
Labels
os: macos type: enhancement New feature or request

Comments

@unknowndomain
Copy link

unknowndomain commented Oct 19, 2019

Describe the bug
The short cuts used are non standard.

Expected behavior
Examples:

@unknowndomain unknowndomain added the type: imperfection Something isn't working label Oct 19, 2019
@sebromero
Copy link
Collaborator

sebromero commented Oct 20, 2019

@kittaakos kittaakos removed the type: imperfection Something isn't working label Oct 23, 2019
@mastrolinux mastrolinux added the type: enhancement New feature or request label Oct 28, 2019
@tigoe
Copy link
Member

tigoe commented Nov 6, 2019

+1 to this issue. OS standard keyboard shortcuts are well-known, and should be respected. There are even some that are cross-OS that this system does not respect. I regard this as a bug.

The system should also respect as many of the original Arduino app keyboard shortcuts as possible, IMO, per issue #17

@jankeromnes
Copy link
Member

jankeromnes commented Nov 25, 2019

FYI, I've updated Theia to use Command + , = Preferences by default on Mac OS: eclipse-theia/theia#6620

In general, any keybindings that seem "standard" but are different to VS Code should be fixed in Theia.

On the other hand, any Arduino-specific keybindings (e.g. Command + U = Upload) can be defined in this project, by implementing a KeybindingContribution class with a registerKeybindings(keybindings: KeybindingRegistry): void method.

@jankeromnes
Copy link
Member

jankeromnes commented Nov 26, 2019

Command + W = Close Window

In VS Code, this is different for each OS:

  • Mac OS:
    • Command + W = Close Editor
    • Shift + Command + W = Close Window
  • Linux (thanks for checking, @nisarhassan12!):
    • Ctrl + W = Close Editor
    • Ctrl + Q = Close Window
  • Windows:
    • Ctrl + F4 = Close Editor
    • Ctrl + W = Close Window

Would these keybindings be acceptable in Arduino Pro too? (They may soon be the default in Theia.)

@jankeromnes
Copy link
Member

Update: the majority of keybindings have been fixed upstream in Theia, so we should update Theia here whenever convenient.

Another thing that remains to be done here is Arduino-specific bindings like Cmd + U = Upload.

@jankeromnes
Copy link
Member

jankeromnes commented Dec 12, 2019

With the latest Theia update and v0.0.3 release, this is now done. Hooray! Thanks all for your input.

Going forward, if you feel like a keybinding is missing, please open a dedicated issue for that particular keybinding.

Note that there is already #17 about supporting legacy Arduino IDE shortcuts like Cmd + U = Upload.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
os: macos type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

8 participants