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

Fixed #998 - Fixed a boolean logic error on line 646 of design.dart #1006

Merged
merged 1 commit into from
Oct 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions lib/src/view/design.dart
Original file line number Diff line number Diff line change
@@ -644,12 +644,13 @@ class DesignViewComponent {
ev.preventDefault();
app.disable_keyboard_shortcuts_while(ask_for_select_all_with_same_as_selected);
} else if ((app.state.ui_state.edit_modes.contains(EditModeChoice.select) ||
app.state.ui_state.edit_modes.contains(EditModeChoice.rope_select) &&
ev.altKey &&
!(ev.ctrlKey || ev.metaKey))) {
app.state.ui_state.edit_modes.contains(EditModeChoice.rope_select)) &&
ev.altKey &&
!(ev.ctrlKey || ev.metaKey)) {
// Alt+? for select modes
ev.preventDefault(); // for some reason this is not stopping Alt+D,
// so we also let the user type Alt+O since Alt+D has a special meaning in Chrome

if (key == KeyCode.S) {
app.dispatch(actions.SelectModeToggle(SelectModeChoice.strand));
} else if (key == KeyCode.O || key == KeyCode.D) {
Loading