mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-192720 vcs: do not lose selection in "Local Changes" on Menu keypress
This commit is contained in:
@@ -693,14 +693,15 @@ public abstract class ChangesTree extends Tree implements DataProvider {
|
||||
@Override
|
||||
protected void processMouseEvent(MouseEvent e) {
|
||||
if (e.getID() == MouseEvent.MOUSE_PRESSED) {
|
||||
if (!isEnabled()) return;
|
||||
int row = getRowForLocation(e.getX(), e.getY());
|
||||
if (row >= 0) {
|
||||
final Rectangle baseRect = getRowBounds(row);
|
||||
baseRect.setSize(myCheckboxWidth, baseRect.height);
|
||||
if (baseRect.contains(e.getPoint())) {
|
||||
setSelectionRow(row);
|
||||
toggleChanges(getSelectedUserObjects());
|
||||
if (myShowCheckboxes && isEnabled() && !e.isPopupTrigger()) {
|
||||
int row = getRowForLocation(e.getX(), e.getY());
|
||||
if (row >= 0) {
|
||||
final Rectangle baseRect = getRowBounds(row);
|
||||
baseRect.setSize(myCheckboxWidth, baseRect.height);
|
||||
if (baseRect.contains(e.getPoint())) {
|
||||
setSelectionRow(row);
|
||||
toggleChanges(getSelectedUserObjects());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user