dart-pad
dart-pad copied to clipboard
support multiple keybindings for some actions
- support multiple keybindings for some actions
- run is now cmd-r (as well as the older dartpad binding, cmd-enter); fix https://github.com/dart-lang/dart-pad/issues/2818
- format is now cmd-s (as well as the vs code binding, shift-option-f); fix https://github.com/dart-lang/dart-pad/issues/2848
- added support for the older dartpad binding for quick fixes - option-enter; address part of https://github.com/dart-lang/dart-pad/issues/2868
Note that the behavior of cmd-s changes with this PR; before, it runs the snippet, after, it formats it. cmd-r is probably better as a run keybinding (and will probably prevent people from unintentionally reloading the dartpad page), and cmd-s should be familiar to vs code users as many have format-on-save active.
- [x] I’ve reviewed the contributor guide and applied the relevant portions to this PR.
Contribution guidelines:
- See our contributor guide for general expectations for PRs.
- Larger or significant changes should be discussed in an issue before creating a PR.
- Contributions to our repos should follow the Dart style guide and use
dart format
. - Most changes should add an entry to the changelog and may need to rev the pubspec package version.
- Changes to packages require corresponding tests.
Note that many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback.