Comments (3)
Yes. We briefly investigated this and came to same conclusion: focus should follow click (or mouse down). Marking this one as bug here, but it most likely needs a framework-level fix in the context click event.
from context-menu.
I generally agree on this. But it still must be possible to have a context menu for multiple selections...
We solved this by adding "grid.select(...)" calls in a ContextMenuOpenListener.
As normally you have different menu entries for multiple selection than for single selection, we needed the listener anyway.
from context-menu.
You're right. There is difference between "selection" and "focus". We found that typically in desktop environment focus follows mouse down, but that does not (at least not always) affect the selection yet. Text selections seems to be exception to this rule.
from context-menu.
Related Issues (20)
- Context menu with nothing added causes Javascript error
- java.lang.NoSuchMethodError on vaadin 8 after migration
- MenuItemImpl class shall be public on branch 2.0.0
- Vaadin 8.12.0 get warnings HOT 3
- GridContextMenuOpenEvent returns Object instead of T HOT 2
- After adding Gridcontextmenu everywhere visible HOT 3
- Add the possibility to hide the menu
- Error: Grid motion cursors stop responding HOT 5
- ERROR] Line 15: The constructor VOverlay(boolean, boolean, boolean) is undefined HOT 1
- When opening context menu with keyboard, it opens in top of window HOT 2
- Second time opening context menu (when still shown) does not work correctly HOT 2
- ContextMenu not opening HOT 8
- Nested ContextMenuItems not work properly HOT 2
- Arrow keys stop working after opening context menu HOT 3
- TreeGrid support HOT 1
- MenuItem should implement EventTrigger HOT 1
- Up/down cursor in context menu not working correctly HOT 5
- HTML format not working HOT 3
- Compilation error with vaadin 8.6.0 HOT 6
- Small backward incompatible change
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from context-menu.