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

Shortcuts don't work for new files in the Editor #23151

Closed
gepcel opened this issue Dec 3, 2024 · 1 comment · Fixed by #23161
Closed

Shortcuts don't work for new files in the Editor #23151

gepcel opened this issue Dec 3, 2024 · 1 comment · Fixed by #23161

Comments

@gepcel
Copy link
Contributor

gepcel commented Dec 3, 2024

What steps reproduce the problem?

  1. After opening spyder, a default script file probably named untitled0.py is created, shortcuts like run selection and advance or create_new_cell work perfectly.
  2. After closing the current file (only the file, not spyder), spyder will automatically create another new script file probably named untitled1.py, shortcuts like run selection and advance or create_new_cell stop working.
  3. The toolbar button Run selection or current line stops working either.

Update:

Minimize the window, maximize it again, the shortcut works again.

Versions:

  • Spyder version: 6.0.2 (conda)
  • Python version: 3.9.15 64-bit
  • Qt version: 5.15.2
  • PyQt5 version: 5.15.11
  • Operating System: Windows-10-10.0.19045-SP0

Note: If this is not reproducible, although I'm using spyder 6.02, but I merge the #23024 manually.

@ccordoba12
Copy link
Member

Hey @gepcel, thanks for applying #23024 and reporting this problem. I was able to easily reproduce this, so we'll fix it before 6.0.3 is released.

@ccordoba12 ccordoba12 changed the title Shortcuts doesn't work in a new script file. Shortcuts don't work in new files in the Editor Dec 3, 2024
@ccordoba12 ccordoba12 self-assigned this Dec 3, 2024
@ccordoba12 ccordoba12 added this to the v6.0.3 milestone Dec 3, 2024
@ccordoba12 ccordoba12 changed the title Shortcuts don't work in new files in the Editor Shortcuts don't work for new files in the Editor Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants