Revision 3f19a280
b/src/gr/ebs/gss/client/GSSSelectionEventManager.java | ||
---|---|---|
368 | 368 |
NativeEvent nativeEvent = event.getNativeEvent(); |
369 | 369 |
String type = nativeEvent.getType(); |
370 | 370 |
boolean rightclick = "mousedown".equals(type) && nativeEvent.getButton()==NativeEvent.BUTTON_RIGHT; |
371 |
GWT.log("NATIVE EVENT:"+nativeEvent.getType() +" "+rightclick); |
|
372 | 371 |
if(rightclick){ |
373 | 372 |
boolean shift = nativeEvent.getShiftKey(); |
374 | 373 |
boolean ctrlOrMeta = nativeEvent.getCtrlKey() || nativeEvent.getMetaKey(); |
... | ... | |
504 | 503 |
int itemCount = display.getVisibleItemCount(); |
505 | 504 |
int start = range.getStart(); |
506 | 505 |
int end = start + range.getLength(); |
507 |
for (int i = start; i < end && i < itemCount; i++) { |
|
508 |
toUpdate.add(display.getVisibleItem(i)); |
|
509 |
} |
|
510 |
|
|
506 |
for (int i = start; i < end ; i++) { |
|
507 |
toUpdate.add(display.getVisibleItem(i-display.getVisibleRange().getStart())); |
|
508 |
} |
|
511 | 509 |
// Clear all other values. |
512 | 510 |
if (clearOthers) { |
513 | 511 |
clearSelection(selectionModel); |
Also available in: Unified diff