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) {
|
||||
return true;
|
||||
}
|
||||
if (e.isControlDown() && allowMultipleSelections) {
|
||||
if (e.isControlDown()) {
|
||||
item.selected = false;
|
||||
selectedIndices.remove(item.index);
|
||||
selectedIndices.remove((Object)item.index);
|
||||
onSelectionChange();
|
||||
item.scrollIntoView();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user