mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Prevent crash when Control clicking a selected card
This commit is contained in:
@@ -144,9 +144,9 @@ public class ImageView<T extends InventoryItem> extends ItemView<T> {
|
|||||||
if (e.getButton() != 1) {
|
if (e.getButton() != 1) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (e.isControlDown() && allowMultipleSelections) {
|
if (e.isControlDown()) {
|
||||||
item.selected = false;
|
item.selected = false;
|
||||||
selectedIndices.remove(item.index);
|
selectedIndices.remove((Object)item.index);
|
||||||
onSelectionChange();
|
onSelectionChange();
|
||||||
item.scrollIntoView();
|
item.scrollIntoView();
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user