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

Detecting keycodes (if any) along with mouse clicks in PlotClickListener #7

Open
cloudmu opened this issue Apr 2, 2013 · 1 comment
Labels

Comments

@cloudmu
Copy link

cloudmu commented Apr 2, 2013

Currently PlotClickListener can handle mouse click events on the plot. However the keyboard event is not passed into its onPlotClick method (see code snippet below). The keycodes (if any) would be useful to implement the typical multi-selection feature (Ctrl key + mouse clicks).

plot.addClickListener(new PlotClickListener() {
@OverRide
public void onPlotClick(Plot p, PlotPosition position, PlotItem item) {
// How to detect keycodes if any when a PlotItem is selected
}

}, true);

@nmorel
Copy link
Owner

nmorel commented Apr 3, 2013

flot doesn't give informations about the keyboard on this method. From the API.txt :

the plot will listen for click events on the plot area and fire a "plotclick" event on the placeholder with a position and a nearby data item object as parameters.

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

No branches or pull requests

2 participants