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

Middle mouse button click on editor tabs may close wrong tab #12558

Closed
matheger opened this issue Apr 30, 2020 · 4 comments · Fixed by #12617
Closed

Middle mouse button click on editor tabs may close wrong tab #12558

matheger opened this issue Apr 30, 2020 · 4 comments · Fixed by #12617

Comments

@matheger
Copy link

Found a minor UI issue: When clicking the middle mouse button on the filename in an editor tab, it closes that tab, as expected. However, when doing this anywhere on the "X" symbol part of the tab, Spyder closes the next tab to the right.

E.g. in this image:
Untitled
Middle mouse button click in the red area should close "temp.py", but it closes "untitled1.py".
(Literal) Edge case: Clicking in the green area should close "untitled1.py", but does nothing.

Python 3.7.7 64-bit | Qt 5.9.6 | PyQt5 5.9.2 | Windows 10
clean miniconda environment & spyder --reset

@goanpeca
Copy link
Member

goanpeca commented May 4, 2020

Thanks for the report @matheger . I do not have a mouse handy to check this problem, but what you say indeed suggest something is wrong.

Will try to tackle this in a future release.

Cheers!

@steff456
Copy link
Member

steff456 commented May 4, 2020

Hi @goanpeca I'm unable to check this issue because I don't have a mouse either. We can ask in the team to see if someone can reproduce this.

@bcolsen
Copy link
Member

bcolsen commented May 4, 2020

I can reproduce this in Ubuntu

@goanpeca
Copy link
Member

goanpeca commented May 4, 2020

Hi @goanpeca I'm unable to check this issue because I don't have a mouse either. We can ask in the team to see if someone can reproduce this.

@steff456 you can overcome this by using https://karabiner-elements.pqrs.org/ with some configuration like the following one:

Screen Shot 2020-05-04 at 16 23 17

On Mac the X is to the left, but if I click on the right where the X would be on other operating systems, I get the same behavior. On the animation, I clicked F1 (Fn+F1) in the py portion of the name and the next tab closed instead of the one I clicked. So I can reproduce this.

pylint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
v4.1.4
Release
Development

Successfully merging a pull request may close this issue.

4 participants