Mousedown on context menu should not cause tree to lose focus
See original GitHub issueI think this can be prevented by calling mouseDownEvent.preventDefault(), or by using -moz-user-focus: ignore
on the context menu.
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Stop button losing focus when contextmenu event fires
I've implemented this by creating a helper to handle detecting a longpress, when onMouseDown or onTouchStart is fired then it plays, when ...
Read more >Element: contextmenu event - Web APIs | MDN
The contextmenu event fires when the user attempts to open a context menu. This event is typically triggered by clicking the right mouse ......
Read more >Topic: Context menu VS "mousedown" / sciter
So intercepting Event.MOUSE_DOWN is not enough. If you need to handle context menu actiavation in script then you should define Event.
Read more >How to: Create a custom context menu | WinForms Controls
How to: Create a custom context menu ... The empty area does not provide a predefined context menu. You can handle the tree...
Read more >ag-Grid Reference: Grid Properties
In other words, double clicking a columns headers edge will not auto-size. ... Set this to true to stop cell editing when grid...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
But after selecting an option, it makes sense that the focus goes back to where it was. (I suppose here that we could open the menu using the keyboard, which isn’t possible at the moment).
@tanhengyeow because you already fixed a
good first issue
bug, it would be better if you could take ahelp wanted
bug that’s not agood first issue
, so that we keep thegood first issue
bugs for newcomers. You can find such issues with this link. Thanks for your understanding 😃Thanks, I’ll check it out shortly, probably tomorrow. Sorry for the delay!