Skip to content

Commit

Permalink
Merge pull request #1006 from UC-Davis-molecular-computing/998-allow-…
Browse files Browse the repository at this point in the history
…ctrl+shift+i-to-open-developer-tools

Fixed #998 - Fixed a boolean logic error on line 646 of design.dart
  • Loading branch information
beanbeanjuice authored Oct 25, 2024
2 parents 78f57e2 + b2adb08 commit 1865efb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/src/view/design.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1865efb

Please sign in to comment.