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

[proposal] Consistent API for event handling #3767

Open
AgDude opened this issue Jun 12, 2015 · 0 comments
Open

[proposal] Consistent API for event handling #3767

AgDude opened this issue Jun 12, 2015 · 0 comments

Comments

@AgDude
Copy link
Contributor

AgDude commented Jun 12, 2015

Consistent keyboard and mouse event handling

Capturing keyboard and mouse events within the grid can be challenging, largely because focus is often "faked". In order to effectively address #3695 (highlight cells and copy to the clipboard) keyboard events need to be captured within the grid, as well as mouse/touch "drag" and click/shift-click. The other area that would make sense to make more consistent is handling click, touch, hold, and drag events on column headers. These are a frequent cause for breakage in sorting, movecolumn and columnmenu.

Mouse/Touch actions

Click/touch

This can be a challenge when we need to delay detection to ensure that we aren't waiting for a hold/drag. See #3333.

Hold in place

Mostly used for touch devices, but may as well support mouse too.

Drag

On touch we need to have some "hold in place" time threshold to initiate the drag in order differentiate when the user is trying to scroll and when they are trying drag an object.
Needs to block text selection.

Keyboard actions

Standard keyboard events, but we need to know if the user has focus within the grid. Especially if there are multiple grids on the page. There should also be a publicApi to expose keyboard events within the grid. For example maybe someone wants to capture ctrl-r to refresh the data in the grid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants