You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
The text was updated successfully, but these errors were encountered:
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.
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);
The text was updated successfully, but these errors were encountered: