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

Macro: When pressing the Enter or the Spacebar, the “Edit mode” drop-down opens and closes randomly in the Text-editing mode #4296

Closed
ViktoriaTkacheva opened this issue Mar 21, 2024 · 1 comment · Fixed by #4323 or #4326

Comments

@ViktoriaTkacheva
Copy link
Collaborator

Actual behavior
When pressing the Enter or the Spacebar, the “Edit mode” drop-down opens and closes randomly in the Text-editing mode, if before you opened the “Edit mode” drop-down at least once (even without selecting anything)

Expected behavior
When pressing the Enter or the Spacebar, nothing happens with the “Edit mode” drop-down in the Text-editing mode

Case 1: when pressing the Spacebar

Steps to Reproduce

  1. Launch “Ketcher” and switch to the Macro mode
  2. Switch to the Sequence mode
  3. Right-click on the canvas and select the “Start new sequence” option
  4. Enter any nucleotide (for example, U)
  5. Open the “Edit mode” drop-down and click on any empty place on the canvas
  6. Press the Spacebar on the keyboard
  7. Verify the condition of the “Edit mode” drop-down
  8. Click on any empty place on the canvas
  9. Press the Spacebar on the keyboard one more time
  10. Verify the condition of the “Edit mode” drop-down

Case 2: when pressing the Enter

Steps to Reproduce

  1. Launch “Ketcher” and switch to the Macro mode
  2. Switch to the Sequence mode
  3. Right-click on the canvas and select the “Start new sequence” option
  4. Enter any nucleotide (for example, U)
  5. Open the “Edit mode” drop-down and click on any empty place on the canvas
  6. Press the Enter on the keyboard a few times
  7. Verify the condition of the “Edit mode” drop-down
  8. Enter any nucleotide (for example, U)
  9. Press the Enter on the keyboard
  10. Verify the condition of the “Edit mode” drop-down

Screenshots

2024-03-21_11h47_59.mp4

Desktop (please complete the following information):

  • OS: Windows 10 Pro (version 22H2) x64
  • Browser: Сhrome
  • Version: (122.0.6261.112) x64

Ketcher version 2.20.0-rc.1

Issue found while testing #3861

@ViktoriaTkacheva ViktoriaTkacheva added this to the Ketcher 2.20.0-rc.2 milestone Mar 21, 2024
rrodionov91 added a commit that referenced this issue Mar 22, 2024
…e” drop-down opens and closes randomly in the Text-editing mode
rrodionov91 added a commit that referenced this issue Mar 22, 2024
…e” drop-down opens and closes randomly in the Text-editing mode (#4323)
rrodionov91 added a commit that referenced this issue Mar 22, 2024
…e” drop-down opens and closes randomly in the Text-editing mode
rrodionov91 added a commit that referenced this issue Mar 23, 2024
…e” drop-down opens and closes randomly in the Text-editing mode (#4326)
@Zhirnoff
Copy link
Collaborator

Tested on build 2.20.0-rc.2 Bug is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment