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