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

Right-click->"Rename Notebook..." on "inactive" tab prompts to rename "active" notebook #4945

Closed
rickhg12hs opened this issue Jul 23, 2018 · 7 comments · Fixed by #4590
Closed
Assignees
Labels
bug pkg:application status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Milestone

Comments

@rickhg12hs
Copy link

Hovering over any tab shows the details for that tab (super!). However, right-clicking and selecting "Rename Notebook..." for an "inactive" tab doesn't pop-up a rename for that notebook. The pop-up is to rename the "active" notebook.

This is counter-intuitive, and yes I renamed the wrong notebook and then noticed what happened.

@blink1073
Copy link
Contributor

Thanks for the report, @rickhg12hs! The issue here is that we are intercepting the right click event for our menu, and preventing the tab from being activated. I will take a look at this one.

@blink1073 blink1073 added this to the 0.34 milestone Jul 23, 2018
@blink1073 blink1073 self-assigned this Jul 23, 2018
@blink1073
Copy link
Contributor

blink1073 commented Jul 23, 2018

Notes to self:

Add a tabBars iterator to our shell.

On context menu event in Application:

  • If it is a tab bar, emit mousedown and mouseup events, then find the current tab and send an activate request to the owner.
  • Otherwise, send mousedown and mouseup events to the target, and let the widget handle it.

@jasongrout
Copy link
Contributor

I'm pretty sure this is fixed in master.

@ian-r-rose
Copy link
Member

I don't think this is fixed. This also came up in #4500 and #4529. #4590 is an attempt to fix the problem, but I am not sure that it a general enough fix for what we need.

For what it's worth, neither Firefox nor Chrome activate a tab upon right-clicking. It may be that we decide this is a confusing enough behavior that we do activate them on right-click, however.

@rickhg12hs
Copy link
Author

Does the tab/notebook actually need to be activated to rename it by right-clicking?

@ian-r-rose
Copy link
Member

Currently the Rename command works on the active notebook, so it needs to be activated (unfortunately). It would be nice to be able to pass in the widget that received the right-click to the command, but that would be kind of tricky to implement with the current setup.

@blink1073
Copy link
Contributor

Fixed by #4590

@lock lock bot added the status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. label Aug 8, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Aug 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug pkg:application status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants