From b2adb085ed87f3af79d4e5ca6d829291d2f9cf30 Mon Sep 17 00:00:00 2001 From: William Orlopp Date: Wed, 23 Oct 2024 22:00:15 -0700 Subject: [PATCH] Fixed 998 - Boolean Logic Error There was an error with the boolean logic on line 646 of `design.dart`. This was preventing the Chrome Dev Tools key shortcut from opening. --- lib/src/view/design.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/src/view/design.dart b/lib/src/view/design.dart index 4a1451f2..3a9a1992 100644 --- a/lib/src/view/design.dart +++ b/lib/src/view/design.dart @@ -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) {