Added shortcut to clear Grid crafting matrix, fixes #1516

This commit is contained in:
raoulvdberge
2017-11-04 20:20:56 +01:00
parent 18b4fbe358
commit 92c0b2aece
4 changed files with 8 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
### 1.5.22
- Added oredict, blocking, processing, ore inputs access to OpenComputers API (raoulvdberge)
- Added shortcut to clear Grid crafting matrix (CTRL+X) (raoulvdberge)
- The Crafter can now only store 1 stack size pattern per slot (raoulvdberge)
- You can now re-insert a Pattern in the pattern output slot in the Pattern Grid to modify an existing pattern (raoulvdberge)
- Fixed not being able to use JEI R and U keys on Grid with tabs (raoulvdberge)

View File

@@ -2,13 +2,16 @@ package com.raoulvdberge.refinedstorage;
import net.minecraft.client.settings.KeyBinding;
import net.minecraftforge.client.settings.KeyConflictContext;
import net.minecraftforge.client.settings.KeyModifier;
import net.minecraftforge.fml.client.registry.ClientRegistry;
import org.lwjgl.input.Keyboard;
public final class RSKeyBindings {
public static final KeyBinding FOCUS_SEARCH_BAR = new KeyBinding("key.refinedstorage.focusSearchBar", KeyConflictContext.GUI, Keyboard.KEY_TAB, "Refined Storage");
public static final KeyBinding CLEAR_GRID_CRAFTING_MATRIX = new KeyBinding("key.refinedstorage.clearGridCraftingMatrix", KeyConflictContext.GUI, KeyModifier.CONTROL, Keyboard.KEY_X, "Refined Storage");
public static void init() {
ClientRegistry.registerKeyBinding(FOCUS_SEARCH_BAR);
ClientRegistry.registerKeyBinding(CLEAR_GRID_CRAFTING_MATRIX);
}
}

View File

@@ -680,6 +680,8 @@ public class GuiGrid extends GuiBase implements IGridDisplay {
saveHistory();
keyHandled = true;
} else if (keyCode == RSKeyBindings.CLEAR_GRID_CRAFTING_MATRIX.getKeyCode()) {
RS.INSTANCE.network.sendToServer(new MessageGridClear());
} else {
super.keyTyped(character, keyCode);
}

View File

@@ -1,6 +1,7 @@
itemGroup.refinedstorage=Refined Storage
key.refinedstorage.focusSearchBar=Grid Search Bar Focus
key.refinedstorage.focusSearchBar=Focus Grid Search Bar
key.refinedstorage.clearGridCraftingMatrix=Clear Grid Crafting Matrix
gui.refinedstorage:controller.0=Controller
gui.refinedstorage:controller.1=Creative Controller