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

Conversation

beanbeanjuice
Copy link
Contributor

@beanbeanjuice beanbeanjuice commented Oct 24, 2024

Description

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. Looking through the code, the dev tools opens on other browsers like Arc (F12) and Firefox (F12). I found out that the logic for detecting keyboard presses works properly in index.html so I dug deeper through the code. It turns out that design.dart was firing when it should not have been, preventing the default behaviour of CTRL + SHIFT + I.

Related Issue

Fixes #998. This also fixes other issues where different hotkeys CTRL + I or SHIFT + I would also toggle insertion mode.

To reproduce the issue;

  1. The Select (S) or Rope Select (R) tools must be enabled.
  2. From there, press CTRL + SHIFT + I.
  3. The insertion tool (ALT + I), will be selected.

For this fix, the above issue is prevented.

Motivation and Context

This fixes #998. This caused a bit of a headache when needing to open dev tools; causing us to use our mouse and press multiple buttons instead of CTRL + SHIFT + I.

How Has This Been Tested?

This was tested on Windows 11; on Chrome and Arc.

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.
@beanbeanjuice beanbeanjuice added the bug Something isn't working label Oct 24, 2024
@beanbeanjuice beanbeanjuice self-assigned this Oct 24, 2024
@beanbeanjuice beanbeanjuice linked an issue Oct 24, 2024 that may be closed by this pull request
@beanbeanjuice beanbeanjuice merged commit 1865efb into dev Oct 25, 2024
4 checks passed
@beanbeanjuice beanbeanjuice deleted the 998-allow-ctrl+shift+i-to-open-developer-tools branch October 25, 2024 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

allow Ctrl+Shift+I to open developer tools
2 participants