mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Use FMouseAdapter's onLeftDoubleClick event for double click detection in ListChooser.
This commit is contained in:
@@ -134,11 +134,9 @@ public class ListChooser<T> {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.lstChoices.addMouseListener(new FMouseAdapter() {
|
this.lstChoices.addMouseListener(new FMouseAdapter() {
|
||||||
@Override public void onLeftClick(final MouseEvent e) {
|
@Override public void onLeftDoubleClick(final MouseEvent e) {
|
||||||
if (e.getClickCount() == 2) {
|
|
||||||
ListChooser.this.commit();
|
ListChooser.this.commit();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user