-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
More context in context menu #4529
Comments
As a starting point for discussion on this issue, I've submitted a pull request (#4590) with a cleaned-up/more complete version of the focus fix I came up with when I was fiddling around with #4500. The fix works by having the main app (ie the |
I also added a lambda to the
I then made the relevant subs in the code for the commands themselves (ie I replaced In sum, this makes use of the new |
If you all (mostly @ian-r-rose, I suppose) consider the basic premise of the fix to be sound, I'm sure it can be expanded to cover the information needed by the file browser context menu in the On the other hand, I'm not at all familiar with TS design patterns/best practices. I figure there's a decent chance that my approach breaks desired encapsulation and/or exposes too much information to certain scopes. If so, what would be the appropriate way to expose the needed info? |
… contextmenu still needs a working version of the "Open With..." item
…yterlab#4590) * fix for context menu problems in jupyterlab#4500/jupyterlab#4529 * Generalized the focus fix
… contextmenu still needs a working version of the "Open With..." item
There are a number of places in the UI where the phosphor context menu system is more limited than we would want, and it is causing trouble. The context menu is based upon CSS selectors, but if there is more than one node with the same (or intersecting) selectors, we currently have no way of distinguishing which one was clicked on.
This, for instance, is a blocker for moving the file browser over to the application context menu, since we need to know more about which file browser item was clicked upon, and how to get that information in the
Open With
submenu.It is also a problem with the context menu items in the tabs of the main area (as noted in #4500). If the user right-clicks on a tab that is not the currently active one, it shows the right context menus, but the commands operate on the wrong widget. I am not sure the best way to fix this, but it would be nice to be able to get more information to the commands invoked in the context menu about which node was clicked.
The text was updated successfully, but these errors were encountered: